home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 64.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v20 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 34 37 3a 32 37 20 31 | 39 39 38 0a 3b 3b 3b 20 |:47:27 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 63 6f 6d 69 |s-20.3/l|isp/comi|
|000000a0| 6e 74 2f 63 6f 6d 69 6e | 74 2e 65 6c 0a 3b 3b 3b |nt/comin|t.el.;;;|
|000000b0| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 32 | emacs v|ersion 2|
|000000c0| 30 2e 34 20 22 45 6d 65 | 72 61 6c 64 22 20 58 45 |0.4 "Eme|rald" XE|
|000000d0| 6d 61 63 73 20 20 4c 75 | 63 69 64 2e 0a 3b 3b 3b |macs Lu|cid..;;;|
|000000e0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000f0| 6e 20 32 2e 32 35 20 58 | 45 6d 61 63 73 3b 20 32 |n 2.25 X|Emacs; 2|
|00000100| 32 2d 4d 61 72 2d 39 36 | 2e 0a 3b 3b 3b 20 6f 70 |2-Mar-96|..;;; op|
|00000110| 74 69 6d 69 7a 61 74 69 | 6f 6e 20 69 73 20 6f 6e |timizati|on is on|
|00000120| 2e 0a 3b 3b 3b 20 74 68 | 69 73 20 66 69 6c 65 20 |..;;; th|is file |
|00000130| 75 73 65 73 20 6f 70 63 | 6f 64 65 73 20 77 68 69 |uses opc|odes whi|
|00000140| 63 68 20 64 6f 20 6e 6f | 74 20 65 78 69 73 74 20 |ch do no|t exist |
|00000150| 69 6e 20 45 6d 61 63 73 | 20 31 39 2e 0a 0a 28 69 |in Emacs| 19...(i|
|00000160| 66 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |f (and (|boundp '|
|00000170| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 29 0a 09 |emacs-ve|rsion)..|
|00000180| 20 28 6f 72 20 28 61 6e | 64 20 28 62 6f 75 6e 64 | (or (an|d (bound|
|00000190| 70 20 27 65 70 6f 63 68 | 3a 3a 76 65 72 73 69 6f |p 'epoch|::versio|
|000001a0| 6e 29 20 65 70 6f 63 68 | 3a 3a 76 65 72 73 69 6f |n) epoch|::versio|
|000001b0| 6e 29 0a 09 20 20 20 20 | 20 28 73 74 72 69 6e 67 |n).. | (string|
|000001c0| 2d 6c 65 73 73 70 20 65 | 6d 61 63 73 2d 76 65 72 |-lessp e|macs-ver|
|000001d0| 73 69 6f 6e 20 22 32 30 | 22 29 29 29 0a 20 20 20 |sion "20|"))). |
|000001e0| 20 28 65 72 72 6f 72 20 | 22 60 63 6f 6d 69 6e 74 | (error |"`comint|
|000001f0| 2e 65 6c 27 20 77 61 73 | 20 63 6f 6d 70 69 6c 65 |.el' was| compile|
|00000200| 64 20 66 6f 72 20 45 6d | 61 63 73 20 32 30 22 29 |d for Em|acs 20")|
|00000210| 29 0a 0a 28 6f 72 20 28 | 62 6f 75 6e 64 70 20 27 |)..(or (|boundp '|
|00000220| 63 75 72 72 65 6e 74 2d | 6c 6f 61 64 2d 6c 69 73 |current-|load-lis|
|00000230| 74 29 20 28 73 65 74 71 | 20 63 75 72 72 65 6e 74 |t) (setq| current|
|00000240| 2d 6c 6f 61 64 2d 6c 69 | 73 74 20 6e 69 6c 29 29 |-load-li|st nil))|
|00000250| 0a 0a 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |...(byte|-code ".|
|00000260| c1 21 88 c0 c2 21 88 c3 | c4 c5 c6 c7 c8 25 88 c3 |.!...!..|.....%..|
|00000270| c9 c5 ca c7 c4 25 88 c3 | cb c5 cc cd ce c7 c4 26 |.....%..|.......&|
|00000280| 07 87 22 20 5b 72 65 71 | 75 69 72 65 20 72 69 6e |.." [req|uire rin|
|00000290| 67 20 65 61 73 79 6d 65 | 6e 75 20 63 75 73 74 6f |g easyme|nu custo|
|000002a0| 6d 2d 64 65 63 6c 61 72 | 65 2d 67 72 6f 75 70 20 |m-declar|e-group |
|000002b0| 63 6f 6d 69 6e 74 20 6e | 69 6c 20 22 47 65 6e 65 |comint n|il "Gene|
|000002c0| 72 61 6c 20 63 6f 6d 6d | 61 6e 64 20 69 6e 74 65 |ral comm|and inte|
|000002d0| 72 70 72 65 74 65 72 20 | 69 6e 20 61 20 77 69 6e |rpreter |in a win|
|000002e0| 64 6f 77 20 73 74 75 66 | 66 2e 22 20 3a 67 72 6f |dow stuf|f." :gro|
|000002f0| 75 70 20 70 72 6f 63 65 | 73 73 65 73 20 63 6f 6d |up proce|sses com|
|00000300| 69 6e 74 2d 63 6f 6d 70 | 6c 65 74 69 6f 6e 20 22 |int-comp|letion "|
|00000310| 43 6f 6d 70 6c 65 74 69 | 6f 6e 20 66 61 63 69 6c |Completi|on facil|
|00000320| 69 74 69 65 73 20 69 6e | 20 63 6f 6d 69 6e 74 22 |ities in| comint"|
|00000330| 20 63 6f 6d 69 6e 74 2d | 73 6f 75 72 63 65 20 22 | comint-|source "|
|00000340| 53 6f 75 72 63 65 20 66 | 69 6e 64 69 6e 67 20 66 |Source f|inding f|
|00000350| 61 63 69 6c 69 74 69 65 | 73 20 69 6e 20 63 6f 6d |acilitie|s in com|
|00000360| 69 6e 74 22 20 3a 70 72 | 65 66 69 78 20 22 63 6f |int" :pr|efix "co|
|00000370| 6d 69 6e 74 2d 22 5d 20 | 38 29 0a 23 40 35 31 33 |mint-"] |8).#@513|
|00000380| 20 52 65 67 65 78 70 20 | 74 6f 20 72 65 63 6f 67 | Regexp |to recog|
|00000390| 6e 69 73 65 20 70 72 6f | 6d 70 74 73 20 69 6e 20 |nise pro|mpts in |
|000003a0| 74 68 65 20 69 6e 66 65 | 72 69 6f 72 20 70 72 6f |the infe|rior pro|
|000003b0| 63 65 73 73 2e 0a 44 65 | 66 61 75 6c 74 73 20 74 |cess..De|faults t|
|000003c0| 6f 20 22 5e 22 2c 20 74 | 68 65 20 6e 75 6c 6c 20 |o "^", t|he null |
|000003d0| 73 74 72 69 6e 67 20 61 | 74 20 42 4f 4c 2e 0a 0a |string a|t BOL...|
|000003e0| 47 6f 6f 64 20 63 68 6f | 69 63 65 73 3a 0a 20 20 |Good cho|ices:. |
|000003f0| 43 61 6e 6f 6e 69 63 61 | 6c 20 4c 69 73 70 3a 20 |Canonica|l Lisp: |
|00000400| 22 5e 5b 5e 3e 20 5c 6e | 5d 2a 3e 2b 3a 3f 20 2a |"^[^> \n|]*>+:? *|
|00000410| 22 20 28 4c 75 63 69 64 | 2c 20 66 72 61 6e 7a 2c |" (Lucid|, franz,|
|00000420| 20 6b 63 6c 2c 20 54 2c | 20 63 73 63 68 65 6d 65 | kcl, T,| cscheme|
|00000430| 2c 20 6f 61 6b 6c 69 73 | 70 29 0a 20 20 4c 75 63 |, oaklis|p). Luc|
|00000440| 69 64 20 43 6f 6d 6d 6f | 6e 20 4c 69 73 70 3a 20 |id Commo|n Lisp: |
|00000450| 22 5e 5c 5c 28 3e 5c 5c | 7c 5c 5c 28 2d 3e 5c 5c |"^\\(>\\||\\(->\\|
|00000460| 29 2b 5c 5c 29 20 2a 22 | 0a 20 20 66 72 61 6e 7a |)+\\) *"|. franz|
|00000470| 3a 20 22 5e 5c 5c 28 2d | 3e 5c 5c 7c 3c 5b 30 2d |: "^\\(-|>\\|<[0-|
|00000480| 39 5d 2a 3e 3a 5c 5c 29 | 20 2a 22 0a 20 20 6b 63 |9]*>:\\)| *". kc|
|00000490| 6c 3a 20 22 5e 3e 2b 20 | 2a 22 0a 20 20 73 68 65 |l: "^>+ |*". she|
|000004a0| 6c 6c 3a 20 22 5e 5b 5e | 23 24 25 3e 5c 6e 5d 2a |ll: "^[^|#$%>\n]*|
|000004b0| 5b 23 24 25 3e 5d 20 2a | 22 0a 20 20 54 3a 20 22 |[#$%>] *|". T: "|
|000004c0| 5e 3e 2b 20 2a 22 0a 0a | 54 68 65 20 70 61 74 74 |^>+ *"..|The patt|
|000004d0| 65 72 6e 20 73 68 6f 75 | 6c 64 20 62 65 67 69 6e |ern shou|ld begin|
|000004e0| 20 77 69 74 68 20 22 5e | 22 2e 20 20 49 74 20 63 | with "^|". It c|
|000004f0| 61 6e 20 6d 61 74 63 68 | 20 74 65 78 74 20 6f 6e |an match| text on|
|00000500| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 65 20 6c | more th|an one l|
|00000510| 69 6e 65 2e 0a 54 68 69 | 73 20 70 61 74 74 65 72 |ine..Thi|s patter|
|00000520| 6e 20 67 65 74 73 20 68 | 61 6e 64 65 64 20 74 6f |n gets h|anded to|
|00000530| 20 72 65 2d 73 65 61 72 | 63 68 2d 62 61 63 6b 77 | re-sear|ch-backw|
|00000540| 61 72 64 2c 20 6e 6f 74 | 20 6c 6f 6f 6b 69 6e 67 |ard, not| looking|
|00000550| 2d 61 74 2e 0a 0a 54 68 | 69 73 20 69 73 20 61 20 |-at...Th|is is a |
|00000560| 67 6f 6f 64 20 74 68 69 | 6e 67 20 74 6f 20 73 65 |good thi|ng to se|
|00000570| 74 20 69 6e 20 6d 6f 64 | 65 20 68 6f 6f 6b 73 2e |t in mod|e hooks.|
|00000580| 1f 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |..(defva|r comint|
|00000590| 2d 70 72 6f 6d 70 74 2d | 72 65 67 65 78 70 20 22 |-prompt-|regexp "|
|000005a0| 5e 22 20 28 23 24 20 2e | 20 38 39 37 29 29 0a 23 |^" (#$ .| 897)).#|
|000005b0| 40 33 38 32 20 4c 69 73 | 74 20 6f 66 20 63 68 61 |@382 Lis|t of cha|
|000005c0| 72 61 63 74 65 72 73 20 | 74 6f 20 72 65 63 6f 67 |racters |to recog|
|000005d0| 6e 69 73 65 20 61 73 20 | 73 65 70 61 72 61 74 65 |nise as |separate|
|000005e0| 20 61 72 67 75 6d 65 6e | 74 73 20 69 6e 20 69 6e | argumen|ts in in|
|000005f0| 70 75 74 2e 0a 53 74 72 | 69 6e 67 73 20 63 6f 6d |put..Str|ings com|
|00000600| 70 72 69 73 69 6e 67 20 | 61 20 63 68 61 72 61 63 |prising |a charac|
|00000610| 74 65 72 20 69 6e 20 74 | 68 69 73 20 6c 69 73 74 |ter in t|his list|
|00000620| 20 77 69 6c 6c 20 73 65 | 70 61 72 61 74 65 20 74 | will se|parate t|
|00000630| 68 65 20 61 72 67 75 6d | 65 6e 74 73 0a 73 75 72 |he argum|ents.sur|
|00000640| 72 6f 75 6e 64 69 6e 67 | 20 74 68 65 6d 2c 20 61 |rounding| them, a|
|00000650| 6e 64 20 61 6c 73 6f 20 | 62 65 20 72 65 67 61 72 |nd also |be regar|
|00000660| 64 65 64 20 61 73 20 61 | 72 67 75 6d 65 6e 74 73 |ded as a|rguments|
|00000670| 20 69 6e 20 74 68 65 69 | 72 20 6f 77 6e 20 72 69 | in thei|r own ri|
|00000680| 67 68 74 20 28 75 6e 6c | 69 6b 65 0a 77 68 69 74 |ght (unl|ike.whit|
|00000690| 65 73 70 61 63 65 29 2e | 20 20 53 65 65 20 60 63 |espace).| See `c|
|000006a0| 6f 6d 69 6e 74 2d 61 72 | 67 75 6d 65 6e 74 73 27 |omint-ar|guments'|
|000006b0| 2e 0a 44 65 66 61 75 6c | 74 73 20 74 6f 20 74 68 |..Defaul|ts to th|
|000006c0| 65 20 65 6d 70 74 79 20 | 6c 69 73 74 2e 0a 0a 46 |e empty |list...F|
|000006d0| 6f 72 20 73 68 65 6c 6c | 73 2c 20 61 20 67 6f 6f |or shell|s, a goo|
|000006e0| 64 20 76 61 6c 75 65 20 | 69 73 20 28 3f 5c 7c 20 |d value |is (?\| |
|000006f0| 3f 26 20 3f 3c 20 3f 3e | 20 3f 5c 28 20 3f 5c 29 |?& ?< ?>| ?\( ?\)|
|00000700| 20 3f 3b 29 2e 0a 0a 54 | 68 69 73 20 69 73 20 61 | ?;)...T|his is a|
|00000710| 20 67 6f 6f 64 20 74 68 | 69 6e 67 20 74 6f 20 73 | good th|ing to s|
|00000720| 65 74 20 69 6e 20 6d 6f | 64 65 20 68 6f 6f 6b 73 |et in mo|de hooks|
|00000730| 2e 1f 0a 28 64 65 66 76 | 61 72 20 63 6f 6d 69 6e |...(defv|ar comin|
|00000740| 74 2d 64 65 6c 69 6d 69 | 74 65 72 2d 61 72 67 75 |t-delimi|ter-argu|
|00000750| 6d 65 6e 74 2d 6c 69 73 | 74 20 6e 69 6c 20 28 23 |ment-lis|t nil (#|
|00000760| 24 20 2e 20 31 34 36 31 | 29 29 0a 28 63 75 73 74 |$ . 1461|)).(cust|
|00000770| 6f 6d 2d 64 65 63 6c 61 | 72 65 2d 76 61 72 69 61 |om-decla|re-varia|
|00000780| 62 6c 65 20 27 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |ble 'com|int-inpu|
|00000790| 74 2d 61 75 74 6f 65 78 | 70 61 6e 64 20 27 6e 69 |t-autoex|pand 'ni|
|000007a0| 6c 20 22 2a 49 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |l "*If n|on-nil, |
|000007b0| 65 78 70 61 6e 64 20 69 | 6e 70 75 74 20 63 6f 6d |expand i|nput com|
|000007c0| 6d 61 6e 64 20 68 69 73 | 74 6f 72 79 20 72 65 66 |mand his|tory ref|
|000007d0| 65 72 65 6e 63 65 73 20 | 6f 6e 20 63 6f 6d 70 6c |erences |on compl|
|000007e0| 65 74 69 6f 6e 2e 5c 6e | 54 68 69 73 20 6d 69 72 |etion.\n|This mir|
|000007f0| 72 6f 72 73 20 74 68 65 | 20 6f 70 74 69 6f 6e 61 |rors the| optiona|
|00000800| 6c 20 62 65 68 61 76 69 | 6f 72 20 6f 66 20 74 63 |l behavi|or of tc|
|00000810| 73 68 20 28 69 74 73 20 | 61 75 74 6f 65 78 70 61 |sh (its |autoexpa|
|00000820| 6e 64 20 61 6e 64 20 68 | 69 73 74 6c 69 74 29 2e |nd and h|istlit).|
|00000830| 5c 6e 5c 6e 49 66 20 74 | 68 65 20 76 61 6c 75 65 |\n\nIf t|he value|
|00000840| 20 69 73 20 60 69 6e 70 | 75 74 27 2c 20 74 68 65 | is `inp|ut', the|
|00000850| 6e 20 74 68 65 20 65 78 | 70 61 6e 73 69 6f 6e 20 |n the ex|pansion |
|00000860| 69 73 20 73 65 65 6e 20 | 6f 6e 20 69 6e 70 75 74 |is seen |on input|
|00000870| 2e 5c 6e 49 66 20 74 68 | 65 20 76 61 6c 75 65 20 |.\nIf th|e value |
|00000880| 69 73 20 60 68 69 73 74 | 6f 72 79 27 2c 20 74 68 |is `hist|ory', th|
|00000890| 65 6e 20 74 68 65 20 65 | 78 70 61 6e 73 69 6f 6e |en the e|xpansion|
|000008a0| 20 69 73 20 6f 6e 6c 79 | 20 77 68 65 6e 20 69 6e | is only| when in|
|000008b0| 73 65 72 74 69 6e 67 5c | 6e 69 6e 74 6f 20 74 68 |serting\|ninto th|
|000008c0| 65 20 62 75 66 66 65 72 | 27 73 20 69 6e 70 75 74 |e buffer|'s input|
|000008d0| 20 72 69 6e 67 2e 20 20 | 53 65 65 20 61 6c 73 6f | ring. |See also|
|000008e0| 20 60 63 6f 6d 69 6e 74 | 2d 6d 61 67 69 63 2d 73 | `comint|-magic-s|
|000008f0| 70 61 63 65 27 20 61 6e | 64 5c 6e 60 63 6f 6d 69 |pace' an|d\n`comi|
|00000900| 6e 74 2d 64 79 6e 61 6d | 69 63 2d 63 6f 6d 70 6c |nt-dynam|ic-compl|
|00000910| 65 74 65 27 2e 5c 6e 5c | 6e 54 68 69 73 20 76 61 |ete'.\n\|nThis va|
|00000920| 72 69 61 62 6c 65 20 69 | 73 20 62 75 66 66 65 72 |riable i|s buffer|
|00000930| 2d 6c 6f 63 61 6c 2e 22 | 20 3a 74 79 70 65 20 27 |-local."| :type '|
|00000940| 28 63 68 6f 69 63 65 20 | 28 63 6f 6e 73 74 20 3a |(choice |(const :|
|00000950| 74 61 67 20 22 6f 66 66 | 22 20 6e 69 6c 29 20 28 |tag "off|" nil) (|
|00000960| 63 6f 6e 73 74 20 3a 74 | 61 67 20 22 6f 6e 22 20 |const :t|ag "on" |
|00000970| 74 29 20 28 63 6f 6e 73 | 74 20 69 6e 70 75 74 29 |t) (cons|t input)|
|00000980| 20 28 63 6f 6e 73 74 20 | 68 69 73 74 6f 72 79 29 | (const |history)|
|00000990| 29 20 3a 67 72 6f 75 70 | 20 27 63 6f 6d 69 6e 74 |) :group| 'comint|
|000009a0| 29 0a 28 63 75 73 74 6f | 6d 2d 64 65 63 6c 61 72 |).(custo|m-declar|
|000009b0| 65 2d 76 61 72 69 61 62 | 6c 65 20 27 63 6f 6d 69 |e-variab|le 'comi|
|000009c0| 6e 74 2d 69 6e 70 75 74 | 2d 69 67 6e 6f 72 65 64 |nt-input|-ignored|
|000009d0| 75 70 73 20 27 74 20 22 | 2a 49 66 20 6e 6f 6e 2d |ups 't "|*If non-|
|000009e0| 6e 69 6c 2c 20 64 6f 6e | 27 74 20 61 64 64 20 69 |nil, don|'t add i|
|000009f0| 6e 70 75 74 20 6d 61 74 | 63 68 69 6e 67 20 74 68 |nput mat|ching th|
|00000a00| 65 20 6c 61 73 74 20 6f | 6e 20 74 68 65 20 69 6e |e last o|n the in|
|00000a10| 70 75 74 20 72 69 6e 67 | 2e 5c 6e 54 68 69 73 20 |put ring|.\nThis |
|00000a20| 6d 69 72 72 6f 72 73 20 | 74 68 65 20 6f 70 74 69 |mirrors |the opti|
|00000a30| 6f 6e 61 6c 20 62 65 68 | 61 76 69 6f 72 20 6f 66 |onal beh|avior of|
|00000a40| 20 62 61 73 68 2e 5c 6e | 5c 6e 54 68 69 73 20 76 | bash.\n|\nThis v|
|00000a50| 61 72 69 61 62 6c 65 20 | 69 73 20 62 75 66 66 65 |ariable |is buffe|
|00000a60| 72 2d 6c 6f 63 61 6c 2e | 22 20 3a 74 79 70 65 20 |r-local.|" :type |
|00000a70| 27 62 6f 6f 6c 65 61 6e | 20 3a 67 72 6f 75 70 20 |'boolean| :group |
|00000a80| 27 63 6f 6d 69 6e 74 29 | 0a 28 63 75 73 74 6f 6d |'comint)|.(custom|
|00000a90| 2d 64 65 63 6c 61 72 65 | 2d 76 61 72 69 61 62 6c |-declare|-variabl|
|00000aa0| 65 20 27 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |e 'comin|t-input-|
|00000ab0| 72 69 6e 67 2d 66 69 6c | 65 2d 6e 61 6d 65 20 27 |ring-fil|e-name '|
|00000ac0| 6e 69 6c 20 22 2a 49 66 | 20 6e 6f 6e 2d 6e 69 6c |nil "*If| non-nil|
|00000ad0| 2c 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 66 69 |, name o|f the fi|
|00000ae0| 6c 65 20 74 6f 20 72 65 | 61 64 2f 77 72 69 74 65 |le to re|ad/write|
|00000af0| 20 69 6e 70 75 74 20 68 | 69 73 74 6f 72 79 2e 5c | input h|istory.\|
|00000b00| 6e 53 65 65 20 61 6c 73 | 6f 20 60 63 6f 6d 69 6e |nSee als|o `comin|
|00000b10| 74 2d 72 65 61 64 2d 69 | 6e 70 75 74 2d 72 69 6e |t-read-i|nput-rin|
|00000b20| 67 27 20 61 6e 64 20 60 | 63 6f 6d 69 6e 74 2d 77 |g' and `|comint-w|
|00000b30| 72 69 74 65 2d 69 6e 70 | 75 74 2d 72 69 6e 67 27 |rite-inp|ut-ring'|
|00000b40| 2e 5c 6e 5c 6e 54 68 69 | 73 20 76 61 72 69 61 62 |.\n\nThi|s variab|
|00000b50| 6c 65 20 69 73 20 62 75 | 66 66 65 72 2d 6c 6f 63 |le is bu|ffer-loc|
|00000b60| 61 6c 2c 20 61 6e 64 20 | 69 73 20 61 20 67 6f 6f |al, and |is a goo|
|00000b70| 64 20 74 68 69 6e 67 20 | 74 6f 20 73 65 74 20 69 |d thing |to set i|
|00000b80| 6e 20 6d 6f 64 65 20 68 | 6f 6f 6b 73 2e 22 20 3a |n mode h|ooks." :|
|00000b90| 74 79 70 65 20 27 62 6f | 6f 6c 65 61 6e 20 3a 67 |type 'bo|olean :g|
|00000ba0| 72 6f 75 70 20 27 63 6f | 6d 69 6e 74 29 0a 28 63 |roup 'co|mint).(c|
|00000bb0| 75 73 74 6f 6d 2d 64 65 | 63 6c 61 72 65 2d 76 61 |ustom-de|clare-va|
|00000bc0| 72 69 61 62 6c 65 20 27 | 63 6f 6d 69 6e 74 2d 73 |riable '|comint-s|
|00000bd0| 63 72 6f 6c 6c 2d 74 6f | 2d 62 6f 74 74 6f 6d 2d |croll-to|-bottom-|
|00000be0| 6f 6e 2d 69 6e 70 75 74 | 20 27 6e 69 6c 20 22 2a |on-input| 'nil "*|
|00000bf0| 43 6f 6e 74 72 6f 6c 73 | 20 77 68 65 74 68 65 72 |Controls| whether|
|00000c00| 20 69 6e 70 75 74 20 74 | 6f 20 69 6e 74 65 72 70 | input t|o interp|
|00000c10| 72 65 74 65 72 20 63 61 | 75 73 65 73 20 77 69 6e |reter ca|uses win|
|00000c20| 64 6f 77 20 74 6f 20 73 | 63 72 6f 6c 6c 2e 5c 6e |dow to s|croll.\n|
|00000c30| 49 66 20 6e 69 6c 2c 20 | 74 68 65 6e 20 64 6f 20 |If nil, |then do |
|00000c40| 6e 6f 74 20 73 63 72 6f | 6c 6c 2e 20 20 49 66 20 |not scro|ll. If |
|00000c50| 74 20 6f 72 20 60 61 6c | 6c 27 2c 20 73 63 72 6f |t or `al|l', scro|
|00000c60| 6c 6c 20 61 6c 6c 20 77 | 69 6e 64 6f 77 73 20 73 |ll all w|indows s|
|00000c70| 68 6f 77 69 6e 67 20 62 | 75 66 66 65 72 2e 5c 6e |howing b|uffer.\n|
|00000c80| 49 66 20 60 74 68 69 73 | 27 2c 20 73 63 72 6f 6c |If `this|', scrol|
|00000c90| 6c 20 6f 6e 6c 79 20 74 | 68 65 20 73 65 6c 65 63 |l only t|he selec|
|00000ca0| 74 65 64 20 77 69 6e 64 | 6f 77 2e 5c 6e 5c 6e 54 |ted wind|ow.\n\nT|
|00000cb0| 68 65 20 64 65 66 61 75 | 6c 74 20 69 73 20 6e 69 |he defau|lt is ni|
|00000cc0| 6c 2e 5c 6e 5c 6e 53 65 | 65 20 60 63 6f 6d 69 6e |l.\n\nSe|e `comin|
|00000cd0| 74 2d 70 72 65 69 6e 70 | 75 74 2d 73 63 72 6f 6c |t-preinp|ut-scrol|
|00000ce0| 6c 2d 74 6f 2d 62 6f 74 | 74 6f 6d 27 2e 20 20 54 |l-to-bot|tom'. T|
|00000cf0| 68 69 73 20 76 61 72 69 | 61 62 6c 65 20 69 73 20 |his vari|able is |
|00000d00| 62 75 66 66 65 72 2d 6c | 6f 63 61 6c 2e 22 20 3a |buffer-l|ocal." :|
|00000d10| 74 79 70 65 20 27 28 63 | 68 6f 69 63 65 20 28 63 |type '(c|hoice (c|
|00000d20| 6f 6e 73 74 20 3a 74 61 | 67 20 22 6f 66 66 22 20 |onst :ta|g "off" |
|00000d30| 6e 69 6c 29 20 28 63 6f | 6e 73 74 20 74 29 20 28 |nil) (co|nst t) (|
|00000d40| 63 6f 6e 73 74 20 61 6c | 6c 29 20 28 63 6f 6e 73 |const al|l) (cons|
|00000d50| 74 20 74 68 69 73 29 29 | 20 3a 67 72 6f 75 70 20 |t this))| :group |
|00000d60| 27 63 6f 6d 69 6e 74 29 | 0a 28 63 75 73 74 6f 6d |'comint)|.(custom|
|00000d70| 2d 64 65 63 6c 61 72 65 | 2d 76 61 72 69 61 62 6c |-declare|-variabl|
|00000d80| 65 20 27 63 6f 6d 69 6e | 74 2d 73 63 72 6f 6c 6c |e 'comin|t-scroll|
|00000d90| 2d 74 6f 2d 62 6f 74 74 | 6f 6d 2d 6f 6e 2d 6f 75 |-to-bott|om-on-ou|
|00000da0| 74 70 75 74 20 27 6e 69 | 6c 20 22 2a 43 6f 6e 74 |tput 'ni|l "*Cont|
|00000db0| 72 6f 6c 73 20 77 68 65 | 74 68 65 72 20 69 6e 74 |rols whe|ther int|
|00000dc0| 65 72 70 72 65 74 65 72 | 20 6f 75 74 70 75 74 20 |erpreter| output |
|00000dd0| 63 61 75 73 65 73 20 77 | 69 6e 64 6f 77 20 74 6f |causes w|indow to|
|00000de0| 20 73 63 72 6f 6c 6c 2e | 5c 6e 49 66 20 6e 69 6c | scroll.|\nIf nil|
|00000df0| 2c 20 74 68 65 6e 20 64 | 6f 20 6e 6f 74 20 73 63 |, then d|o not sc|
|00000e00| 72 6f 6c 6c 2e 20 20 49 | 66 20 74 20 6f 72 20 60 |roll. I|f t or `|
|00000e10| 61 6c 6c 27 2c 20 73 63 | 72 6f 6c 6c 20 61 6c 6c |all', sc|roll all|
|00000e20| 20 77 69 6e 64 6f 77 73 | 20 73 68 6f 77 69 6e 67 | windows| showing|
|00000e30| 20 62 75 66 66 65 72 2e | 5c 6e 49 66 20 60 74 68 | buffer.|\nIf `th|
|00000e40| 69 73 27 2c 20 73 63 72 | 6f 6c 6c 20 6f 6e 6c 79 |is', scr|oll only|
|00000e50| 20 74 68 65 20 73 65 6c | 65 63 74 65 64 20 77 69 | the sel|ected wi|
|00000e60| 6e 64 6f 77 2e 5c 6e 49 | 66 20 60 6f 74 68 65 72 |ndow.\nI|f `other|
|00000e70| 73 27 2c 20 73 63 72 6f | 6c 6c 20 6f 6e 6c 79 20 |s', scro|ll only |
|00000e80| 74 68 6f 73 65 20 74 68 | 61 74 20 61 72 65 20 6e |those th|at are n|
|00000e90| 6f 74 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 20 |ot the s|elected |
|00000ea0| 77 69 6e 64 6f 77 2e 5c | 6e 5c 6e 54 68 65 20 64 |window.\|n\nThe d|
|00000eb0| 65 66 61 75 6c 74 20 69 | 73 20 6e 69 6c 2e 5c 6e |efault i|s nil.\n|
|00000ec0| 5c 6e 53 65 65 20 76 61 | 72 69 61 62 6c 65 20 60 |\nSee va|riable `|
|00000ed0| 63 6f 6d 69 6e 74 2d 73 | 63 72 6f 6c 6c 2d 73 68 |comint-s|croll-sh|
|00000ee0| 6f 77 2d 6d 61 78 69 6d | 75 6d 2d 6f 75 74 70 75 |ow-maxim|um-outpu|
|00000ef0| 74 27 20 61 6e 64 20 66 | 75 6e 63 74 69 6f 6e 5c |t' and f|unction\|
|00000f00| 6e 60 63 6f 6d 69 6e 74 | 2d 70 6f 73 74 6f 75 74 |n`comint|-postout|
|00000f10| 70 75 74 2d 73 63 72 6f | 6c 6c 2d 74 6f 2d 62 6f |put-scro|ll-to-bo|
|00000f20| 74 74 6f 6d 27 2e 20 20 | 54 68 69 73 20 76 61 72 |ttom'. |This var|
|00000f30| 69 61 62 6c 65 20 69 73 | 20 62 75 66 66 65 72 2d |iable is| buffer-|
|00000f40| 6c 6f 63 61 6c 2e 22 20 | 3a 74 79 70 65 20 27 28 |local." |:type '(|
|00000f50| 63 68 6f 69 63 65 20 28 | 63 6f 6e 73 74 20 3a 74 |choice (|const :t|
|00000f60| 61 67 20 22 6f 66 66 22 | 20 6e 69 6c 29 20 28 63 |ag "off"| nil) (c|
|00000f70| 6f 6e 73 74 20 74 29 20 | 28 63 6f 6e 73 74 20 61 |onst t) |(const a|
|00000f80| 6c 6c 29 20 28 63 6f 6e | 73 74 20 74 68 69 73 29 |ll) (con|st this)|
|00000f90| 20 28 63 6f 6e 73 74 20 | 6f 74 68 65 72 73 29 29 | (const |others))|
|00000fa0| 20 3a 67 72 6f 75 70 20 | 27 63 6f 6d 69 6e 74 29 | :group |'comint)|
|00000fb0| 0a 28 63 75 73 74 6f 6d | 2d 64 65 63 6c 61 72 65 |.(custom|-declare|
|00000fc0| 2d 76 61 72 69 61 62 6c | 65 20 27 63 6f 6d 69 6e |-variabl|e 'comin|
|00000fd0| 74 2d 73 63 72 6f 6c 6c | 2d 73 68 6f 77 2d 6d 61 |t-scroll|-show-ma|
|00000fe0| 78 69 6d 75 6d 2d 6f 75 | 74 70 75 74 20 27 6e 69 |ximum-ou|tput 'ni|
|00000ff0| 6c 20 22 2a 43 6f 6e 74 | 72 6f 6c 73 20 68 6f 77 |l "*Cont|rols how|
|00001000| 20 69 6e 74 65 72 70 72 | 65 74 65 72 20 6f 75 74 | interpr|eter out|
|00001010| 70 75 74 20 63 61 75 73 | 65 73 20 77 69 6e 64 6f |put caus|es windo|
|00001020| 77 20 74 6f 20 73 63 72 | 6f 6c 6c 2e 5c 6e 49 66 |w to scr|oll.\nIf|
|00001030| 20 6e 6f 6e 2d 6e 69 6c | 2c 20 74 68 65 6e 20 73 | non-nil|, then s|
|00001040| 68 6f 77 20 74 68 65 20 | 6d 61 78 69 6d 75 6d 20 |how the |maximum |
|00001050| 6f 75 74 70 75 74 20 77 | 68 65 6e 20 74 68 65 20 |output w|hen the |
|00001060| 77 69 6e 64 6f 77 20 69 | 73 20 73 63 72 6f 6c 6c |window i|s scroll|
|00001070| 65 64 2e 5c 6e 5c 6e 53 | 65 65 20 76 61 72 69 61 |ed.\n\nS|ee varia|
|00001080| 62 6c 65 20 60 63 6f 6d | 69 6e 74 2d 73 63 72 6f |ble `com|int-scro|
|00001090| 6c 6c 2d 74 6f 2d 62 6f | 74 74 6f 6d 2d 6f 6e 2d |ll-to-bo|ttom-on-|
|000010a0| 6f 75 74 70 75 74 27 20 | 61 6e 64 20 66 75 6e 63 |output' |and func|
|000010b0| 74 69 6f 6e 5c 6e 60 63 | 6f 6d 69 6e 74 2d 70 6f |tion\n`c|omint-po|
|000010c0| 73 74 6f 75 74 70 75 74 | 2d 73 63 72 6f 6c 6c 2d |stoutput|-scroll-|
|000010d0| 74 6f 2d 62 6f 74 74 6f | 6d 27 2e 20 20 54 68 69 |to-botto|m'. Thi|
|000010e0| 73 20 76 61 72 69 61 62 | 6c 65 20 69 73 20 62 75 |s variab|le is bu|
|000010f0| 66 66 65 72 2d 6c 6f 63 | 61 6c 2e 22 20 3a 74 79 |ffer-loc|al." :ty|
|00001100| 70 65 20 27 62 6f 6f 6c | 65 61 6e 20 3a 67 72 6f |pe 'bool|ean :gro|
|00001110| 75 70 20 27 63 6f 6d 69 | 6e 74 29 0a 28 63 75 73 |up 'comi|nt).(cus|
|00001120| 74 6f 6d 2d 64 65 63 6c | 61 72 65 2d 76 61 72 69 |tom-decl|are-vari|
|00001130| 61 62 6c 65 20 27 63 6f | 6d 69 6e 74 2d 62 75 66 |able 'co|mint-buf|
|00001140| 66 65 72 2d 6d 61 78 69 | 6d 75 6d 2d 73 69 7a 65 |fer-maxi|mum-size|
|00001150| 20 27 31 30 32 34 20 22 | 2a 54 68 65 20 6d 61 78 | '1024 "|*The max|
|00001160| 69 6d 75 6d 20 73 69 7a | 65 20 69 6e 20 6c 69 6e |imum siz|e in lin|
|00001170| 65 73 20 66 6f 72 20 63 | 6f 6d 69 6e 74 20 62 75 |es for c|omint bu|
|00001180| 66 66 65 72 73 2e 5c 6e | 43 6f 6d 69 6e 74 20 62 |ffers.\n|Comint b|
|00001190| 75 66 66 65 72 73 20 61 | 72 65 20 74 72 75 6e 63 |uffers a|re trunc|
|000011a0| 61 74 65 64 20 66 72 6f | 6d 20 74 68 65 20 74 6f |ated fro|m the to|
|000011b0| 70 20 74 6f 20 62 65 20 | 6e 6f 20 67 72 65 61 74 |p to be |no great|
|000011c0| 65 72 20 74 68 61 6e 20 | 74 68 69 73 20 6e 75 6d |er than |this num|
|000011d0| 62 65 72 2c 20 69 66 5c | 6e 74 68 65 20 66 75 6e |ber, if\|nthe fun|
|000011e0| 63 74 69 6f 6e 20 60 63 | 6f 6d 69 6e 74 2d 74 72 |ction `c|omint-tr|
|000011f0| 75 6e 63 61 74 65 2d 62 | 75 66 66 65 72 27 20 69 |uncate-b|uffer' i|
|00001200| 73 20 6f 6e 20 60 63 6f | 6d 69 6e 74 2d 6f 75 74 |s on `co|mint-out|
|00001210| 70 75 74 2d 66 69 6c 74 | 65 72 2d 66 75 6e 63 74 |put-filt|er-funct|
|00001220| 69 6f 6e 73 27 2e 22 20 | 3a 74 79 70 65 20 27 69 |ions'." |:type 'i|
|00001230| 6e 74 65 67 65 72 20 3a | 67 72 6f 75 70 20 27 63 |nteger :|group 'c|
|00001240| 6f 6d 69 6e 74 29 0a 23 | 40 32 39 20 53 69 7a 65 |omint).#|@29 Size|
|00001250| 20 6f 66 20 69 6e 70 75 | 74 20 68 69 73 74 6f 72 | of inpu|t histor|
|00001260| 79 20 72 69 6e 67 2e 1f | 0a 28 64 65 66 76 61 72 |y ring..|.(defvar|
|00001270| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 | comint-|input-ri|
|00001280| 6e 67 2d 73 69 7a 65 20 | 33 32 20 28 23 24 20 2e |ng-size |32 (#$ .|
|00001290| 20 34 36 38 34 29 29 0a | 28 63 75 73 74 6f 6d 2d | 4684)).|(custom-|
|000012a0| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|000012b0| 20 27 63 6f 6d 69 6e 74 | 2d 70 72 6f 63 65 73 73 | 'comint|-process|
|000012c0| 2d 65 63 68 6f 65 73 20 | 27 6e 69 6c 20 22 2a 49 |-echoes |'nil "*I|
|000012d0| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 61 73 73 75 6d |f non-ni|l, assum|
|000012e0| 65 20 74 68 61 74 20 74 | 68 65 20 73 75 62 70 72 |e that t|he subpr|
|000012f0| 6f 63 65 73 73 20 65 63 | 68 6f 65 73 20 61 6e 79 |ocess ec|hoes any|
|00001300| 20 69 6e 70 75 74 2e 5c | 6e 49 66 20 73 6f 2c 20 | input.\|nIf so, |
|00001310| 64 65 6c 65 74 65 20 6f | 6e 65 20 63 6f 70 79 20 |delete o|ne copy |
|00001320| 6f 66 20 74 68 65 20 69 | 6e 70 75 74 20 73 6f 20 |of the i|nput so |
|00001330| 74 68 61 74 20 6f 6e 6c | 79 20 6f 6e 65 20 63 6f |that onl|y one co|
|00001340| 70 79 20 65 76 65 6e 74 | 75 61 6c 6c 79 5c 6e 61 |py event|ually\na|
|00001350| 70 70 65 61 72 73 20 69 | 6e 20 74 68 65 20 62 75 |ppears i|n the bu|
|00001360| 66 66 65 72 2e 5c 6e 5c | 6e 54 68 69 73 20 76 61 |ffer.\n\|nThis va|
|00001370| 72 69 61 62 6c 65 20 69 | 73 20 62 75 66 66 65 72 |riable i|s buffer|
|00001380| 2d 6c 6f 63 61 6c 2e 22 | 20 3a 74 79 70 65 20 27 |-local."| :type '|
|00001390| 62 6f 6f 6c 65 61 6e 20 | 3a 67 72 6f 75 70 20 27 |boolean |:group '|
|000013a0| 63 6f 6d 69 6e 74 29 0a | 28 63 75 73 74 6f 6d 2d |comint).|(custom-|
|000013b0| 64 65 63 6c 61 72 65 2d | 76 61 72 69 61 62 6c 65 |declare-|variable|
|000013c0| 20 27 63 6f 6d 69 6e 74 | 2d 70 61 73 73 77 6f 72 | 'comint|-passwor|
|000013d0| 64 2d 70 72 6f 6d 70 74 | 2d 72 65 67 65 78 70 20 |d-prompt|-regexp |
|000013e0| 27 28 69 66 20 28 65 71 | 20 73 79 73 74 65 6d 2d |'(if (eq| system-|
|000013f0| 74 79 70 65 20 27 61 69 | 78 2d 76 33 29 20 22 5c |type 'ai|x-v3) "\|
|00001400| 5c 28 5c 5c 28 5b 4f 6f | 5d 6c 64 20 5c 5c 7c 5b |\(\\([Oo|]ld \\|[|
|00001410| 4e 6e 5d 65 77 20 5c 5c | 7c 5e 5c 5c 7c 5e 2e 2e |Nn]ew \\||^\\|^..|
|00001420| 2a 73 5c 5c 29 5b 50 70 | 5d 61 73 73 77 6f 72 64 |*s\\)[Pp|]assword|
|00001430| 5c 5c 7c 70 61 73 73 20 | 70 68 72 61 73 65 5c 5c |\\|pass |phrase\\|
|00001440| 29 3a 5c 5c 73 20 2a 5c | 5c 27 22 20 22 5c 5c 28 |):\\s *\|\'" "\\(|
|00001450| 5c 5c 28 5b 4f 6f 5d 6c | 64 20 5c 5c 7c 5b 4e 6e |\\([Oo]l|d \\|[Nn|
|00001460| 5d 65 77 20 5c 5c 7c 5e | 5c 5c 29 5b 50 70 5d 61 |]ew \\|^|\\)[Pp]a|
|00001470| 73 73 77 6f 72 64 5c 5c | 7c 70 61 73 73 20 70 68 |ssword\\||pass ph|
|00001480| 72 61 73 65 5c 5c 29 3a | 5c 5c 73 20 2a 5c 5c 27 |rase\\):|\\s *\\'|
|00001490| 22 29 20 22 2a 52 65 67 | 65 78 70 20 6d 61 74 63 |") "*Reg|exp matc|
|000014a0| 68 69 6e 67 20 70 72 6f | 6d 70 74 73 20 66 6f 72 |hing pro|mpts for|
|000014b0| 20 70 61 73 73 77 6f 72 | 64 73 20 69 6e 20 74 68 | passwor|ds in th|
|000014c0| 65 20 69 6e 66 65 72 69 | 6f 72 20 70 72 6f 63 65 |e inferi|or proce|
|000014d0| 73 73 2e 5c 6e 54 68 69 | 73 20 69 73 20 75 73 65 |ss.\nThi|s is use|
|000014e0| 64 20 62 79 20 60 63 6f | 6d 69 6e 74 2d 77 61 74 |d by `co|mint-wat|
|000014f0| 63 68 2d 66 6f 72 2d 70 | 61 73 73 77 6f 72 64 2d |ch-for-p|assword-|
|00001500| 70 72 6f 6d 70 74 27 2e | 22 20 3a 74 79 70 65 20 |prompt'.|" :type |
|00001510| 27 72 65 67 65 78 70 20 | 3a 67 72 6f 75 70 20 27 |'regexp |:group '|
|00001520| 63 6f 6d 69 6e 74 29 0a | 23 40 33 31 38 20 46 75 |comint).|#@318 Fu|
|00001530| 6e 63 74 69 6f 6e 20 74 | 68 61 74 20 72 65 74 75 |nction t|hat retu|
|00001540| 72 6e 73 20 6f 6c 64 20 | 74 65 78 74 20 69 6e 20 |rns old |text in |
|00001550| 63 6f 6d 69 6e 74 20 6d | 6f 64 65 2e 0a 54 68 69 |comint m|ode..Thi|
|00001560| 73 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 20 63 61 |s functi|on is ca|
|00001570| 6c 6c 65 64 20 77 68 65 | 6e 20 72 65 74 75 72 6e |lled whe|n return|
|00001580| 20 69 73 20 74 79 70 65 | 64 20 77 68 69 6c 65 20 | is type|d while |
|00001590| 74 68 65 20 70 6f 69 6e | 74 20 69 73 20 69 6e 20 |the poin|t is in |
|000015a0| 6f 6c 64 20 74 65 78 74 | 2e 0a 49 74 20 72 65 74 |old text|..It ret|
|000015b0| 75 72 6e 73 20 74 68 65 | 20 74 65 78 74 20 74 6f |urns the| text to|
|000015c0| 20 62 65 20 73 75 62 6d | 69 74 74 65 64 20 61 73 | be subm|itted as|
|000015d0| 20 70 72 6f 63 65 73 73 | 20 69 6e 70 75 74 2e 20 | process| input. |
|000015e0| 20 54 68 65 20 64 65 66 | 61 75 6c 74 20 69 73 0a | The def|ault is.|
|000015f0| 60 63 6f 6d 69 6e 74 2d | 67 65 74 2d 6f 6c 64 2d |`comint-|get-old-|
|00001600| 69 6e 70 75 74 2d 64 65 | 66 61 75 6c 74 27 2c 20 |input-de|fault', |
|00001610| 77 68 69 63 68 20 67 72 | 61 62 73 20 74 68 65 20 |which gr|abs the |
|00001620| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 2c 20 61 6e |current |line, an|
|00001630| 64 20 73 74 72 69 70 73 | 20 6f 66 66 0a 6c 65 61 |d strips| off.lea|
|00001640| 64 69 6e 67 20 74 65 78 | 74 20 6d 61 74 63 68 69 |ding tex|t matchi|
|00001650| 6e 67 20 60 63 6f 6d 69 | 6e 74 2d 70 72 6f 6d 70 |ng `comi|nt-promp|
|00001660| 74 2d 72 65 67 65 78 70 | 27 2e 1f 0a 28 64 65 66 |t-regexp|'...(def|
|00001670| 76 61 72 20 63 6f 6d 69 | 6e 74 2d 67 65 74 2d 6f |var comi|nt-get-o|
|00001680| 6c 64 2d 69 6e 70 75 74 | 20 27 63 6f 6d 69 6e 74 |ld-input| 'comint|
|00001690| 2d 67 65 74 2d 6f 6c 64 | 2d 69 6e 70 75 74 2d 64 |-get-old|-input-d|
|000016a0| 65 66 61 75 6c 74 20 28 | 23 24 20 2e 20 35 34 32 |efault (|#$ . 542|
|000016b0| 32 29 29 0a 28 63 75 73 | 74 6f 6d 2d 64 65 63 6c |2)).(cus|tom-decl|
|000016c0| 61 72 65 2d 76 61 72 69 | 61 62 6c 65 20 27 63 6f |are-vari|able 'co|
|000016d0| 6d 69 6e 74 2d 61 70 70 | 65 6e 64 2d 6f 6c 64 2d |mint-app|end-old-|
|000016e0| 69 6e 70 75 74 20 27 74 | 20 22 2a 49 66 20 6e 69 |input 't| "*If ni|
|000016f0| 6c 2c 20 6f 6c 64 20 74 | 65 78 74 20 73 65 6c 65 |l, old t|ext sele|
|00001700| 63 74 65 64 20 62 79 20 | 5c 5c 5b 63 6f 6d 69 6e |cted by |\\[comin|
|00001710| 74 2d 73 65 6e 64 2d 69 | 6e 70 75 74 5d 20 69 73 |t-send-i|nput] is|
|00001720| 20 72 65 2d 73 65 6e 74 | 20 69 6d 6d 65 64 69 61 | re-sent| immedia|
|00001730| 74 65 6c 79 2e 5c 6e 49 | 66 20 6e 6f 6e 2d 6e 69 |tely.\nI|f non-ni|
|00001740| 6c 2c 20 74 68 65 20 6f | 6c 64 20 74 65 78 74 20 |l, the o|ld text |
|00001750| 69 73 20 61 70 70 65 6e | 64 65 64 20 74 6f 20 74 |is appen|ded to t|
|00001760| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 62 75 |he end o|f the bu|
|00001770| 66 66 65 72 2c 5c 6e 61 | 6e 64 20 61 20 70 72 6f |ffer,\na|nd a pro|
|00001780| 6d 70 74 69 6e 67 20 6d | 65 73 73 61 67 65 20 69 |mpting m|essage i|
|00001790| 73 20 70 72 69 6e 74 65 | 64 2e 5c 6e 5c 6e 54 68 |s printe|d.\n\nTh|
|000017a0| 69 73 20 66 6c 61 67 20 | 64 6f 65 73 20 6e 6f 74 |is flag |does not|
|000017b0| 20 61 66 66 65 63 74 20 | 74 68 65 20 62 65 68 61 | affect |the beha|
|000017c0| 76 69 6f 72 20 6f 66 20 | 5c 5c 5b 63 6f 6d 69 6e |vior of |\\[comin|
|000017d0| 74 2d 73 65 6e 64 2d 69 | 6e 70 75 74 5d 5c 6e 61 |t-send-i|nput]\na|
|000017e0| 66 74 65 72 20 74 68 65 | 20 70 72 6f 63 65 73 73 |fter the| process|
|000017f0| 20 6f 75 74 70 75 74 20 | 6d 61 72 6b 2e 22 20 3a | output |mark." :|
|00001800| 74 79 70 65 20 27 62 6f | 6f 6c 65 61 6e 20 3a 67 |type 'bo|olean :g|
|00001810| 72 6f 75 70 20 27 63 6f | 6d 69 6e 74 29 0a 23 40 |roup 'co|mint).#@|
|00001820| 31 39 30 20 4c 69 73 74 | 20 6f 66 20 66 75 6e 63 |190 List| of func|
|00001830| 74 69 6f 6e 73 20 63 61 | 6c 6c 65 64 20 74 6f 20 |tions ca|lled to |
|00001840| 70 65 72 66 6f 72 6d 20 | 63 6f 6d 70 6c 65 74 69 |perform |completi|
|00001850| 6f 6e 2e 0a 46 75 6e 63 | 74 69 6f 6e 73 20 73 68 |on..Func|tions sh|
|00001860| 6f 75 6c 64 20 72 65 74 | 75 72 6e 20 6e 6f 6e 2d |ould ret|urn non-|
|00001870| 6e 69 6c 20 69 66 20 63 | 6f 6d 70 6c 65 74 69 6f |nil if c|ompletio|
|00001880| 6e 20 77 61 73 20 70 65 | 72 66 6f 72 6d 65 64 2e |n was pe|rformed.|
|00001890| 0a 53 65 65 20 61 6c 73 | 6f 20 60 63 6f 6d 69 6e |.See als|o `comin|
|000018a0| 74 2d 64 79 6e 61 6d 69 | 63 2d 63 6f 6d 70 6c 65 |t-dynami|c-comple|
|000018b0| 74 65 27 2e 0a 0a 54 68 | 69 73 20 69 73 20 61 20 |te'...Th|is is a |
|000018c0| 67 6f 6f 64 20 74 68 69 | 6e 67 20 74 6f 20 73 65 |good thi|ng to se|
|000018d0| 74 20 69 6e 20 6d 6f 64 | 65 20 68 6f 6f 6b 73 2e |t in mod|e hooks.|
|000018e0| 1f 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |..(defva|r comint|
|000018f0| 2d 64 79 6e 61 6d 69 63 | 2d 63 6f 6d 70 6c 65 74 |-dynamic|-complet|
|00001900| 65 2d 66 75 6e 63 74 69 | 6f 6e 73 20 27 28 63 6f |e-functi|ons '(co|
|00001910| 6d 69 6e 74 2d 72 65 70 | 6c 61 63 65 2d 62 79 2d |mint-rep|lace-by-|
|00001920| 65 78 70 61 6e 64 65 64 | 2d 68 69 73 74 6f 72 79 |expanded|-history|
|00001930| 20 63 6f 6d 69 6e 74 2d | 64 79 6e 61 6d 69 63 2d | comint-|dynamic-|
|00001940| 63 6f 6d 70 6c 65 74 65 | 2d 66 69 6c 65 6e 61 6d |complete|-filenam|
|00001950| 65 29 20 28 23 24 20 2e | 20 36 31 38 30 29 29 0a |e) (#$ .| 6180)).|
|00001960| 23 40 32 33 30 20 50 72 | 65 64 69 63 61 74 65 20 |#@230 Pr|edicate |
|00001970| 66 6f 72 20 66 69 6c 74 | 65 72 69 6e 67 20 61 64 |for filt|ering ad|
|00001980| 64 69 74 69 6f 6e 73 20 | 74 6f 20 69 6e 70 75 74 |ditions |to input|
|00001990| 20 68 69 73 74 6f 72 79 | 2e 0a 54 61 6b 65 73 20 | history|..Takes |
|000019a0| 6f 6e 65 20 61 72 67 75 | 6d 65 6e 74 2c 20 74 68 |one argu|ment, th|
|000019b0| 65 20 69 6e 70 75 74 2e | 20 20 49 66 20 6e 6f 6e |e input.| If non|
|000019c0| 2d 6e 69 6c 2c 20 74 68 | 65 20 69 6e 70 75 74 20 |-nil, th|e input |
|000019d0| 6d 61 79 20 62 65 20 73 | 61 76 65 64 20 6f 6e 20 |may be s|aved on |
|000019e0| 74 68 65 20 69 6e 70 75 | 74 0a 68 69 73 74 6f 72 |the inpu|t.histor|
|000019f0| 79 20 6c 69 73 74 2e 20 | 20 44 65 66 61 75 6c 74 |y list. | Default|
|00001a00| 20 69 73 20 74 6f 20 73 | 61 76 65 20 61 6e 79 74 | is to s|ave anyt|
|00001a10| 68 69 6e 67 20 6c 6f 6e | 67 65 72 20 74 68 61 6e |hing lon|ger than|
|00001a20| 20 74 77 6f 20 63 68 61 | 72 61 63 74 65 72 73 0a | two cha|racters.|
|00001a30| 74 68 61 74 20 69 73 6e | 27 74 20 61 6c 6c 20 77 |that isn|'t all w|
|00001a40| 68 69 74 65 73 70 61 63 | 65 2e 1f 0a 28 64 65 66 |hitespac|e...(def|
|00001a50| 76 61 72 20 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |var comi|nt-input|
|00001a60| 2d 66 69 6c 74 65 72 20 | 23 5b 28 73 74 72 29 20 |-filter |#[(str) |
|00001a70| 22 c0 c1 5c 6e 5c 22 3f | ad 84 5c 6e 47 c3 56 87 |"..\n\"?|..\nG.V.|
|00001a80| 22 20 5b 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 |" [strin|g-match |
|00001a90| 22 5c 5c 60 5c 5c 73 20 | 2a 5c 5c 27 22 20 73 74 |"\\`\\s |*\\'" st|
|00001aa0| 72 20 32 5d 20 33 5d 20 | 28 23 24 20 2e 20 36 35 |r 2] 3] |(#$ . 65|
|00001ab0| 30 32 29 29 0a 23 40 31 | 36 30 20 46 75 6e 63 74 |02)).#@1|60 Funct|
|00001ac0| 69 6f 6e 73 20 74 6f 20 | 63 61 6c 6c 20 62 65 66 |ions to |call bef|
|00001ad0| 6f 72 65 20 69 6e 70 75 | 74 20 69 73 20 73 65 6e |ore inpu|t is sen|
|00001ae0| 74 20 74 6f 20 74 68 65 | 20 70 72 6f 63 65 73 73 |t to the| process|
|00001af0| 2e 0a 54 68 65 73 65 20 | 66 75 6e 63 74 69 6f 6e |..These |function|
|00001b00| 73 20 67 65 74 20 6f 6e | 65 20 61 72 67 75 6d 65 |s get on|e argume|
|00001b10| 6e 74 2c 20 61 20 73 74 | 72 69 6e 67 20 63 6f 6e |nt, a st|ring con|
|00001b20| 74 61 69 6e 69 6e 67 20 | 74 68 65 20 74 65 78 74 |taining |the text|
|00001b30| 20 74 6f 20 73 65 6e 64 | 2e 0a 0a 54 68 69 73 20 | to send|...This |
|00001b40| 76 61 72 69 61 62 6c 65 | 20 69 73 20 62 75 66 66 |variable| is buff|
|00001b50| 65 72 2d 6c 6f 63 61 6c | 2e 1f 0a 28 64 65 66 76 |er-local|...(defv|
|00001b60| 61 72 20 63 6f 6d 69 6e | 74 2d 69 6e 70 75 74 2d |ar comin|t-input-|
|00001b70| 66 69 6c 74 65 72 2d 66 | 75 6e 63 74 69 6f 6e 73 |filter-f|unctions|
|00001b80| 20 6e 69 6c 20 28 23 24 | 20 2e 20 36 38 34 33 29 | nil (#$| . 6843)|
|00001b90| 29 0a 23 40 32 33 34 20 | 46 75 6e 63 74 69 6f 6e |).#@234 |Function|
|00001ba0| 73 20 74 6f 20 63 61 6c | 6c 20 61 66 74 65 72 20 |s to cal|l after |
|00001bb0| 6f 75 74 70 75 74 20 69 | 73 20 69 6e 73 65 72 74 |output i|s insert|
|00001bc0| 65 64 20 69 6e 74 6f 20 | 74 68 65 20 62 75 66 66 |ed into |the buff|
|00001bd0| 65 72 2e 0a 4f 6e 65 20 | 70 6f 73 73 69 62 6c 65 |er..One |possible|
|00001be0| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 60 63 6f | functio|n is `co|
|00001bf0| 6d 69 6e 74 2d 70 6f 73 | 74 6f 75 74 70 75 74 2d |mint-pos|toutput-|
|00001c00| 73 63 72 6f 6c 6c 2d 74 | 6f 2d 62 6f 74 74 6f 6d |scroll-t|o-bottom|
|00001c10| 27 2e 0a 54 68 65 73 65 | 20 66 75 6e 63 74 69 6f |'..These| functio|
|00001c20| 6e 73 20 67 65 74 20 6f | 6e 65 20 61 72 67 75 6d |ns get o|ne argum|
|00001c30| 65 6e 74 2c 20 61 20 73 | 74 72 69 6e 67 20 63 6f |ent, a s|tring co|
|00001c40| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 74 65 78 |ntaining| the tex|
|00001c50| 74 20 6a 75 73 74 20 69 | 6e 73 65 72 74 65 64 2e |t just i|nserted.|
|00001c60| 0a 0a 54 68 69 73 20 76 | 61 72 69 61 62 6c 65 20 |..This v|ariable |
|00001c70| 69 73 20 62 75 66 66 65 | 72 2d 6c 6f 63 61 6c 2e |is buffe|r-local.|
|00001c80| 1f 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |..(defva|r comint|
|00001c90| 2d 6f 75 74 70 75 74 2d | 66 69 6c 74 65 72 2d 66 |-output-|filter-f|
|00001ca0| 75 6e 63 74 69 6f 6e 73 | 20 27 28 63 6f 6d 69 6e |unctions| '(comin|
|00001cb0| 74 2d 70 6f 73 74 6f 75 | 74 70 75 74 2d 73 63 72 |t-postou|tput-scr|
|00001cc0| 6f 6c 6c 2d 74 6f 2d 62 | 6f 74 74 6f 6d 20 63 6f |oll-to-b|ottom co|
|00001cd0| 6d 69 6e 74 2d 77 61 74 | 63 68 2d 66 6f 72 2d 70 |mint-wat|ch-for-p|
|00001ce0| 61 73 73 77 6f 72 64 2d | 70 72 6f 6d 70 74 29 20 |assword-|prompt) |
|00001cf0| 28 23 24 20 2e 20 37 30 | 36 34 29 29 0a 23 40 33 |(#$ . 70|64)).#@3|
|00001d00| 31 31 20 46 75 6e 63 74 | 69 6f 6e 20 74 6f 20 61 |11 Funct|ion to a|
|00001d10| 63 74 75 61 6c 6c 79 20 | 73 65 6e 64 20 74 6f 20 |ctually |send to |
|00001d20| 50 52 4f 43 45 53 53 20 | 74 68 65 20 53 54 52 49 |PROCESS |the STRI|
|00001d30| 4e 47 20 73 75 62 6d 69 | 74 74 65 64 20 62 79 20 |NG submi|tted by |
|00001d40| 75 73 65 72 2e 0a 55 73 | 75 61 6c 6c 79 20 74 68 |user..Us|ually th|
|00001d50| 69 73 20 69 73 20 6a 75 | 73 74 20 60 63 6f 6d 69 |is is ju|st `comi|
|00001d60| 6e 74 2d 73 69 6d 70 6c | 65 2d 73 65 6e 64 27 2c |nt-simpl|e-send',|
|00001d70| 20 62 75 74 20 69 66 20 | 79 6f 75 72 20 6d 6f 64 | but if |your mod|
|00001d80| 65 20 6e 65 65 64 73 20 | 74 6f 0a 6d 61 73 73 61 |e needs |to.massa|
|00001d90| 67 65 20 74 68 65 20 69 | 6e 70 75 74 20 73 74 72 |ge the i|nput str|
|00001da0| 69 6e 67 2c 20 70 75 74 | 20 61 20 64 69 66 66 65 |ing, put| a diffe|
|00001db0| 72 65 6e 74 20 66 75 6e | 63 74 69 6f 6e 20 68 65 |rent fun|ction he|
|00001dc0| 72 65 2e 0a 60 63 6f 6d | 69 6e 74 2d 73 69 6d 70 |re..`com|int-simp|
|00001dd0| 6c 65 2d 73 65 6e 64 27 | 20 6a 75 73 74 20 73 65 |le-send'| just se|
|00001de0| 6e 64 73 20 74 68 65 20 | 73 74 72 69 6e 67 20 70 |nds the |string p|
|00001df0| 6c 75 73 20 61 20 6e 65 | 77 6c 69 6e 65 2e 0a 54 |lus a ne|wline..T|
|00001e00| 68 69 73 20 69 73 20 63 | 61 6c 6c 65 64 20 66 72 |his is c|alled fr|
|00001e10| 6f 6d 20 74 68 65 20 75 | 73 65 72 20 63 6f 6d 6d |om the u|ser comm|
|00001e20| 61 6e 64 20 60 63 6f 6d | 69 6e 74 2d 73 65 6e 64 |and `com|int-send|
|00001e30| 2d 69 6e 70 75 74 27 2e | 1f 0a 28 64 65 66 76 61 |-input'.|..(defva|
|00001e40| 72 20 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 73 |r comint|-input-s|
|00001e50| 65 6e 64 65 72 20 27 63 | 6f 6d 69 6e 74 2d 73 69 |ender 'c|omint-si|
|00001e60| 6d 70 6c 65 2d 73 65 6e | 64 20 28 23 24 20 2e 20 |mple-sen|d (#$ . |
|00001e70| 37 34 32 37 29 29 0a 28 | 63 75 73 74 6f 6d 2d 64 |7427)).(|custom-d|
|00001e80| 65 63 6c 61 72 65 2d 76 | 61 72 69 61 62 6c 65 20 |eclare-v|ariable |
|00001e90| 27 63 6f 6d 69 6e 74 2d | 65 6f 6c 2d 6f 6e 2d 73 |'comint-|eol-on-s|
|00001ea0| 65 6e 64 20 27 74 20 22 | 2a 4e 6f 6e 2d 6e 69 6c |end 't "|*Non-nil|
|00001eb0| 20 6d 65 61 6e 73 20 67 | 6f 20 74 6f 20 74 68 65 | means g|o to the|
|00001ec0| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 6c 69 6e 65 | end of |the line|
|00001ed0| 20 62 65 66 6f 72 65 20 | 73 65 6e 64 69 6e 67 20 | before |sending |
|00001ee0| 69 6e 70 75 74 2e 5c 6e | 53 65 65 20 60 63 6f 6d |input.\n|See `com|
|00001ef0| 69 6e 74 2d 73 65 6e 64 | 2d 69 6e 70 75 74 27 2e |int-send|-input'.|
|00001f00| 22 20 3a 74 79 70 65 20 | 27 62 6f 6f 6c 65 61 6e |" :type |'boolean|
|00001f10| 20 3a 67 72 6f 75 70 20 | 27 63 6f 6d 69 6e 74 29 | :group |'comint)|
|00001f20| 0a 28 63 75 73 74 6f 6d | 2d 64 65 63 6c 61 72 65 |.(custom|-declare|
|00001f30| 2d 76 61 72 69 61 62 6c | 65 20 27 63 6f 6d 69 6e |-variabl|e 'comin|
|00001f40| 74 2d 6d 6f 64 65 2d 68 | 6f 6f 6b 20 27 27 6e 69 |t-mode-h|ook ''ni|
|00001f50| 6c 20 22 43 61 6c 6c 65 | 64 20 75 70 6f 6e 20 65 |l "Calle|d upon e|
|00001f60| 6e 74 72 79 20 69 6e 74 | 6f 20 63 6f 6d 69 6e 74 |ntry int|o comint|
|00001f70| 2d 6d 6f 64 65 5c 6e 54 | 68 69 73 20 69 73 20 72 |-mode\nT|his is r|
|00001f80| 75 6e 20 62 65 66 6f 72 | 65 20 74 68 65 20 70 72 |un befor|e the pr|
|00001f90| 6f 63 65 73 73 20 69 73 | 20 63 72 61 6e 6b 65 64 |ocess is| cranked|
|00001fa0| 20 75 70 2e 22 20 3a 74 | 79 70 65 20 27 68 6f 6f | up." :t|ype 'hoo|
|00001fb0| 6b 20 3a 67 72 6f 75 70 | 20 27 63 6f 6d 69 6e 74 |k :group| 'comint|
|00001fc0| 29 0a 23 40 33 33 30 20 | 43 61 6c 6c 65 64 20 65 |).#@330 |Called e|
|00001fd0| 61 63 68 20 74 69 6d 65 | 20 61 20 70 72 6f 63 65 |ach time| a proce|
|00001fe0| 73 73 20 69 73 20 65 78 | 65 63 27 64 20 62 79 20 |ss is ex|ec'd by |
|00001ff0| 60 63 6f 6d 69 6e 74 2d | 65 78 65 63 27 2e 0a 54 |`comint-|exec'..T|
|00002000| 68 69 73 20 69 73 20 63 | 61 6c 6c 65 64 20 61 66 |his is c|alled af|
|00002010| 74 65 72 20 74 68 65 20 | 70 72 6f 63 65 73 73 20 |ter the |process |
|00002020| 69 73 20 63 72 61 6e 6b | 65 64 20 75 70 2e 20 20 |is crank|ed up. |
|00002030| 49 74 20 69 73 20 75 73 | 65 66 75 6c 20 66 6f 72 |It is us|eful for|
|00002040| 20 74 68 69 6e 67 73 20 | 74 68 61 74 0a 6d 75 73 | things |that.mus|
|00002050| 74 20 62 65 20 64 6f 6e | 65 20 65 61 63 68 20 74 |t be don|e each t|
|00002060| 69 6d 65 20 61 20 70 72 | 6f 63 65 73 73 20 69 73 |ime a pr|ocess is|
|00002070| 20 65 78 65 63 75 74 65 | 64 20 69 6e 20 61 20 63 | execute|d in a c|
|00002080| 6f 6d 69 6e 74 20 6d 6f | 64 65 20 62 75 66 66 65 |omint mo|de buffe|
|00002090| 72 20 28 65 2e 67 2e 2c | 0a 60 28 70 72 6f 63 65 |r (e.g.,|.`(proce|
|000020a0| 73 73 2d 6b 69 6c 6c 2d | 77 69 74 68 6f 75 74 2d |ss-kill-|without-|
|000020b0| 71 75 65 72 79 29 27 29 | 2e 20 20 49 6e 20 63 6f |query)')|. In co|
|000020c0| 6e 74 72 61 73 74 2c 20 | 74 68 65 20 60 63 6f 6d |ntrast, |the `com|
|000020d0| 69 6e 74 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 27 20 69 |int-mode|-hook' i|
|000020e0| 73 20 6f 6e 6c 79 0a 65 | 78 65 63 75 74 65 64 20 |s only.e|xecuted |
|000020f0| 6f 6e 63 65 20 77 68 65 | 6e 20 74 68 65 20 62 75 |once whe|n the bu|
|00002100| 66 66 65 72 20 69 73 20 | 63 72 65 61 74 65 64 2e |ffer is |created.|
|00002110| 1f 0a 28 64 65 66 76 61 | 72 20 63 6f 6d 69 6e 74 |..(defva|r comint|
|00002120| 2d 65 78 65 63 2d 68 6f | 6f 6b 20 6e 69 6c 20 28 |-exec-ho|ok nil (|
|00002130| 23 24 20 2e 20 38 31 33 | 36 29 29 0a 28 62 79 74 |#$ . 813|6)).(byt|
|00002140| 65 2d 63 6f 64 65 20 22 | c0 c1 21 ac 82 c2 11 c1 |e-code "|..!.....|
|00002150| 0b 42 13 c2 87 22 20 5b | 62 6f 75 6e 64 70 20 63 |.B..." [|boundp c|
|00002160| 6f 6d 69 6e 74 2d 6d 6f | 64 65 2d 6d 61 70 20 6e |omint-mo|de-map n|
|00002170| 69 6c 20 63 75 72 72 65 | 6e 74 2d 6c 6f 61 64 2d |il curre|nt-load-|
|00002180| 6c 69 73 74 5d 20 32 29 | 0a 23 40 31 32 37 20 4e |list] 2)|.#@127 N|
|00002190| 6f 6e 2d 6e 69 6c 20 69 | 66 20 63 6f 6d 6d 75 6e |on-nil i|f commun|
|000021a0| 69 63 61 74 69 6f 6e 73 | 20 76 69 61 20 70 74 79 |ications| via pty|
|000021b0| 3b 20 66 61 6c 73 65 20 | 69 66 20 62 79 20 70 69 |; false |if by pi|
|000021c0| 70 65 2e 20 20 42 75 66 | 66 65 72 20 6c 6f 63 61 |pe. Buf|fer loca|
|000021d0| 6c 2e 0a 54 68 69 73 20 | 69 73 20 74 6f 20 77 6f |l..This |is to wo|
|000021e0| 72 6b 20 61 72 6f 75 6e | 64 20 61 20 62 75 67 20 |rk aroun|d a bug |
|000021f0| 69 6e 20 45 6d 61 63 73 | 20 70 72 6f 63 65 73 73 |in Emacs| process|
|00002200| 20 73 69 67 6e 61 6c 6c | 69 6e 67 2e 1f 0a 28 64 | signall|ing...(d|
|00002210| 65 66 76 61 72 20 63 6f | 6d 69 6e 74 2d 70 74 79 |efvar co|mint-pty|
|00002220| 70 20 74 20 28 23 24 20 | 2e 20 38 35 39 31 29 29 |p t (#$ |. 8591))|
|00002230| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 21 |.(byte-c|ode "..!|
|00002240| ac 82 c2 11 c1 0b 42 13 | c4 0b 42 13 c5 0b 42 13 |......B.|..B...B.|
|00002250| c6 0b 42 13 c2 87 22 20 | 5b 62 6f 75 6e 64 70 20 |..B..." |[boundp |
|00002260| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 72 69 6e |comint-i|nput-rin|
|00002270| 67 20 6e 69 6c 20 63 75 | 72 72 65 6e 74 2d 6c 6f |g nil cu|rrent-lo|
|00002280| 61 64 2d 6c 69 73 74 20 | 63 6f 6d 69 6e 74 2d 6c |ad-list |comint-l|
|00002290| 61 73 74 2d 69 6e 70 75 | 74 2d 73 74 61 72 74 20 |ast-inpu|t-start |
|000022a0| 63 6f 6d 69 6e 74 2d 6c | 61 73 74 2d 69 6e 70 75 |comint-l|ast-inpu|
|000022b0| 74 2d 65 6e 64 20 63 6f | 6d 69 6e 74 2d 6c 61 73 |t-end co|mint-las|
|000022c0| 74 2d 6f 75 74 70 75 74 | 2d 73 74 61 72 74 5d 20 |t-output|-start] |
|000022d0| 32 29 0a 23 40 34 30 20 | 49 6e 64 65 78 20 6f 66 |2).#@40 |Index of|
|000022e0| 20 6c 61 73 74 20 6d 61 | 74 63 68 65 64 20 68 69 | last ma|tched hi|
|000022f0| 73 74 6f 72 79 20 65 6c | 65 6d 65 6e 74 2e 1f 0a |story el|ement...|
|00002300| 28 64 65 66 76 61 72 20 | 63 6f 6d 69 6e 74 2d 69 |(defvar |comint-i|
|00002310| 6e 70 75 74 2d 72 69 6e | 67 2d 69 6e 64 65 78 20 |nput-rin|g-index |
|00002320| 6e 69 6c 20 28 23 24 20 | 2e 20 38 39 32 30 29 29 |nil (#$ |. 8920))|
|00002330| 0a 23 40 34 37 20 49 6e | 70 75 74 20 70 72 65 76 |.#@47 In|put prev|
|00002340| 69 6f 75 73 6c 79 20 75 | 73 65 64 20 74 6f 20 6d |iously u|sed to m|
|00002350| 61 74 63 68 20 69 6e 70 | 75 74 20 68 69 73 74 6f |atch inp|ut histo|
|00002360| 72 79 2e 1f 0a 28 64 65 | 66 76 61 72 20 63 6f 6d |ry...(de|fvar com|
|00002370| 69 6e 74 2d 6d 61 74 63 | 68 69 6e 67 2d 69 6e 70 |int-matc|hing-inp|
|00002380| 75 74 2d 66 72 6f 6d 2d | 69 6e 70 75 74 2d 73 74 |ut-from-|input-st|
|00002390| 72 69 6e 67 20 22 22 20 | 28 23 24 20 2e 20 39 30 |ring "" |(#$ . 90|
|000023a0| 31 34 29 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 |14)).(by|te-code |
|000023b0| 22 c0 c1 c2 c3 23 88 c0 | c4 c2 c3 23 88 c0 c5 c2 |"....#..|...#....|
|000023c0| c3 23 88 c0 c6 c2 c3 23 | 88 c0 c7 c2 c3 23 88 c0 |.#.....#|.....#..|
|000023d0| c8 c2 c3 23 88 c0 c9 c2 | c3 23 88 c0 ca c2 c3 23 |...#....|.#.....#|
|000023e0| 88 c0 cb c2 c3 23 88 cc | cd 21 ac 83 ce 16 0d cd |.....#..|.!......|
|000023f0| 0e 0f 42 16 0f d0 d1 21 | 16 12 d2 0e 0f 42 16 0f |..B....!|.....B..|
|00002400| cc d3 21 ac 83 ce 16 13 | d3 0e 0f 42 16 0f d0 d4 |..!.....|...B....|
|00002410| 21 16 15 d5 0e 0f 42 16 | 0f cc d6 21 ac 83 ce 16 |!.....B.|...!....|
|00002420| 16 d6 0e 0f 42 16 0f d0 | d7 21 16 18 d8 0e 0f 42 |....B...|.!.....B|
|00002430| 16 0f ce 87 22 20 5b 70 | 75 74 20 63 6f 6d 69 6e |...." [p|ut comin|
|00002440| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 20 70 65 72 |t-input-|ring per|
|00002450| 6d 61 6e 65 6e 74 2d 6c | 6f 63 61 6c 20 74 20 63 |manent-l|ocal t c|
|00002460| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00002470| 2d 69 6e 64 65 78 20 63 | 6f 6d 69 6e 74 2d 69 6e |-index c|omint-in|
|00002480| 70 75 74 2d 61 75 74 6f | 65 78 70 61 6e 64 20 63 |put-auto|expand c|
|00002490| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 66 69 6c 74 |omint-in|put-filt|
|000024a0| 65 72 2d 66 75 6e 63 74 | 69 6f 6e 73 20 63 6f 6d |er-funct|ions com|
|000024b0| 69 6e 74 2d 6f 75 74 70 | 75 74 2d 66 69 6c 74 65 |int-outp|ut-filte|
|000024c0| 72 2d 66 75 6e 63 74 69 | 6f 6e 73 20 63 6f 6d 69 |r-functi|ons comi|
|000024d0| 6e 74 2d 73 63 72 6f 6c | 6c 2d 74 6f 2d 62 6f 74 |nt-scrol|l-to-bot|
|000024e0| 74 6f 6d 2d 6f 6e 2d 69 | 6e 70 75 74 20 63 6f 6d |tom-on-i|nput com|
|000024f0| 69 6e 74 2d 73 63 72 6f | 6c 6c 2d 74 6f 2d 62 6f |int-scro|ll-to-bo|
|00002500| 74 74 6f 6d 2d 6f 6e 2d | 6f 75 74 70 75 74 20 63 |ttom-on-|output c|
|00002510| 6f 6d 69 6e 74 2d 73 63 | 72 6f 6c 6c 2d 73 68 6f |omint-sc|roll-sho|
|00002520| 77 2d 6d 61 78 69 6d 75 | 6d 2d 6f 75 74 70 75 74 |w-maximu|m-output|
|00002530| 20 63 6f 6d 69 6e 74 2d | 70 74 79 70 20 62 6f 75 | comint-|ptyp bou|
|00002540| 6e 64 70 20 63 6f 6d 69 | 6e 74 2d 31 2d 6d 65 6e |ndp comi|nt-1-men|
|00002550| 75 62 61 72 2d 6d 65 6e | 75 20 6e 69 6c 20 63 75 |ubar-men|u nil cu|
|00002560| 72 72 65 6e 74 2d 6c 6f | 61 64 2d 6c 69 73 74 20 |rrent-lo|ad-list |
|00002570| 70 75 72 65 63 6f 70 79 | 20 28 22 43 6f 6d 69 6e |purecopy| ("Comin|
|00002580| 74 31 22 20 5b 22 50 72 | 65 76 69 6f 75 73 20 4d |t1" ["Pr|evious M|
|00002590| 61 74 63 68 69 6e 67 20 | 43 75 72 72 65 6e 74 20 |atching |Current |
|000025a0| 49 6e 70 75 74 22 20 63 | 6f 6d 69 6e 74 2d 70 72 |Input" c|omint-pr|
|000025b0| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|000025c0| 69 6e 70 75 74 2d 66 72 | 6f 6d 2d 69 6e 70 75 74 |input-fr|om-input|
|000025d0| 20 74 5d 20 5b 22 4e 65 | 78 74 20 4d 61 74 63 68 | t] ["Ne|xt Match|
|000025e0| 69 6e 67 20 43 75 72 72 | 65 6e 74 20 49 6e 70 75 |ing Curr|ent Inpu|
|000025f0| 74 22 20 63 6f 6d 69 6e | 74 2d 6e 65 78 74 2d 6d |t" comin|t-next-m|
|00002600| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 2d 66 72 |atching-|input-fr|
|00002610| 6f 6d 2d 69 6e 70 75 74 | 20 74 5d 20 5b 22 50 72 |om-input| t] ["Pr|
|00002620| 65 76 69 6f 75 73 20 49 | 6e 70 75 74 22 20 63 6f |evious I|nput" co|
|00002630| 6d 69 6e 74 2d 70 72 65 | 76 69 6f 75 73 2d 69 6e |mint-pre|vious-in|
|00002640| 70 75 74 20 74 5d 20 5b | 22 4e 65 78 74 20 49 6e |put t] [|"Next In|
|00002650| 70 75 74 22 20 63 6f 6d | 69 6e 74 2d 6e 65 78 74 |put" com|int-next|
|00002660| 2d 69 6e 70 75 74 20 74 | 5d 20 5b 22 50 72 65 76 |-input t|] ["Prev|
|00002670| 69 6f 75 73 20 49 6e 70 | 75 74 20 4d 61 74 63 68 |ious Inp|ut Match|
|00002680| 69 6e 67 20 52 65 67 65 | 78 70 2e 2e 2e 22 20 63 |ing Rege|xp..." c|
|00002690| 6f 6d 69 6e 74 2d 70 72 | 65 76 69 6f 75 73 2d 6d |omint-pr|evious-m|
|000026a0| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 20 74 5d |atching-|input t]|
|000026b0| 20 5b 22 4e 65 78 74 20 | 49 6e 70 75 74 20 4d 61 | ["Next |Input Ma|
|000026c0| 74 63 68 69 6e 67 20 52 | 65 67 65 78 70 2e 2e 2e |tching R|egexp...|
|000026d0| 22 20 63 6f 6d 69 6e 74 | 2d 6e 65 78 74 2d 6d 61 |" comint|-next-ma|
|000026e0| 74 63 68 69 6e 67 2d 69 | 6e 70 75 74 20 74 5d 20 |tching-i|nput t] |
|000026f0| 5b 22 42 61 63 6b 77 61 | 72 64 20 4d 61 74 63 68 |["Backwa|rd Match|
|00002700| 69 6e 67 20 49 6e 70 75 | 74 2e 2e 2e 22 20 63 6f |ing Inpu|t..." co|
|00002710| 6d 69 6e 74 2d 62 61 63 | 6b 77 61 72 64 2d 6d 61 |mint-bac|kward-ma|
|00002720| 74 63 68 69 6e 67 2d 69 | 6e 70 75 74 20 74 5d 20 |tching-i|nput t] |
|00002730| 5b 22 46 6f 72 77 61 72 | 64 20 4d 61 74 63 68 69 |["Forwar|d Matchi|
|00002740| 6e 67 20 49 6e 70 75 74 | 2e 2e 2e 22 20 63 6f 6d |ng Input|..." com|
|00002750| 69 6e 74 2d 66 6f 72 77 | 61 72 64 2d 6d 61 74 63 |int-forw|ard-matc|
|00002760| 68 69 6e 67 2d 69 6e 70 | 75 74 20 74 5d 20 22 2d |hing-inp|ut t] "-|
|00002770| 2d 2d 22 20 5b 22 43 6f | 70 79 20 4f 6c 64 20 49 |--" ["Co|py Old I|
|00002780| 6e 70 75 74 22 20 63 6f | 6d 69 6e 74 2d 63 6f 70 |nput" co|mint-cop|
|00002790| 79 2d 6f 6c 64 2d 69 6e | 70 75 74 20 74 5d 20 5b |y-old-in|put t] [|
|000027a0| 22 4b 69 6c 6c 20 43 75 | 72 72 65 6e 74 20 49 6e |"Kill Cu|rrent In|
|000027b0| 70 75 74 22 20 63 6f 6d | 69 6e 74 2d 6b 69 6c 6c |put" com|int-kill|
|000027c0| 2d 69 6e 70 75 74 20 74 | 5d 20 5b 22 53 68 6f 77 |-input t|] ["Show|
|000027d0| 20 43 75 72 72 65 6e 74 | 20 4f 75 74 70 75 74 20 | Current| Output |
|000027e0| 47 72 6f 75 70 22 20 63 | 6f 6d 69 6e 74 2d 73 68 |Group" c|omint-sh|
|000027f0| 6f 77 2d 6f 75 74 70 75 | 74 20 74 5d 20 5b 22 53 |ow-outpu|t t] ["S|
|00002800| 68 6f 77 20 4d 61 78 69 | 6d 75 6d 20 4f 75 74 70 |how Maxi|mum Outp|
|00002810| 75 74 22 20 63 6f 6d 69 | 6e 74 2d 73 68 6f 77 2d |ut" comi|nt-show-|
|00002820| 6d 61 78 69 6d 75 6d 2d | 6f 75 74 70 75 74 20 74 |maximum-|output t|
|00002830| 5d 20 5b 22 47 6f 74 6f | 20 50 72 65 76 69 6f 75 |] ["Goto| Previou|
|00002840| 73 20 50 72 6f 6d 70 74 | 22 20 63 6f 6d 69 6e 74 |s Prompt|" comint|
|00002850| 2d 70 72 65 76 69 6f 75 | 73 2d 70 72 6f 6d 70 74 |-previou|s-prompt|
|00002860| 20 74 5d 20 5b 22 47 6f | 74 6f 20 4e 65 78 74 20 | t] ["Go|to Next |
|00002870| 50 72 6f 6d 70 74 22 20 | 63 6f 6d 69 6e 74 2d 6e |Prompt" |comint-n|
|00002880| 65 78 74 2d 70 72 6f 6d | 70 74 20 74 5d 20 5b 22 |ext-prom|pt t] ["|
|00002890| 4b 69 6c 6c 20 43 6f 6d | 6d 61 6e 64 20 4f 75 74 |Kill Com|mand Out|
|000028a0| 70 75 74 22 20 63 6f 6d | 69 6e 74 2d 6b 69 6c 6c |put" com|int-kill|
|000028b0| 2d 6f 75 74 70 75 74 20 | 74 5d 29 20 63 6f 6d 69 |-output |t]) comi|
|000028c0| 6e 74 2d 31 2d 6d 65 6e | 75 62 61 72 2d 6d 65 6e |nt-1-men|ubar-men|
|000028d0| 75 2d 31 20 63 6f 6d 69 | 6e 74 2d 32 2d 6d 65 6e |u-1 comi|nt-2-men|
|000028e0| 75 62 61 72 2d 6d 65 6e | 75 20 28 22 43 6f 6d 69 |ubar-men|u ("Comi|
|000028f0| 6e 74 32 22 20 5b 22 43 | 6f 6d 70 6c 65 74 65 20 |nt2" ["C|omplete |
|00002900| 42 65 66 6f 72 65 20 50 | 6f 69 6e 74 22 20 63 6f |Before P|oint" co|
|00002910| 6d 69 6e 74 2d 64 79 6e | 61 6d 69 63 2d 63 6f 6d |mint-dyn|amic-com|
|00002920| 70 6c 65 74 65 20 74 5d | 20 5b 22 43 6f 6d 70 6c |plete t]| ["Compl|
|00002930| 65 74 65 20 46 69 6c 65 | 20 4e 61 6d 65 22 20 63 |ete File| Name" c|
|00002940| 6f 6d 69 6e 74 2d 64 79 | 6e 61 6d 69 63 2d 63 6f |omint-dy|namic-co|
|00002950| 6d 70 6c 65 74 65 2d 66 | 69 6c 65 6e 61 6d 65 20 |mplete-f|ilename |
|00002960| 74 5d 20 5b 22 46 69 6c | 65 20 43 6f 6d 70 6c 65 |t] ["Fil|e Comple|
|00002970| 74 69 6f 6e 20 4c 69 73 | 74 69 6e 67 22 20 63 6f |tion Lis|ting" co|
|00002980| 6d 69 6e 74 2d 64 79 6e | 61 6d 69 63 2d 6c 69 73 |mint-dyn|amic-lis|
|00002990| 74 2d 66 69 6c 65 6e 61 | 6d 65 2d 63 6f 6d 70 6c |t-filena|me-compl|
|000029a0| 65 74 69 6f 6e 73 20 74 | 5d 20 5b 22 45 78 70 61 |etions t|] ["Expa|
|000029b0| 6e 64 20 46 69 6c 65 20 | 4e 61 6d 65 22 20 63 6f |nd File |Name" co|
|000029c0| 6d 69 6e 74 2d 72 65 70 | 6c 61 63 65 2d 62 79 2d |mint-rep|lace-by-|
|000029d0| 65 78 70 61 6e 64 65 64 | 2d 66 69 6c 65 6e 61 6d |expanded|-filenam|
|000029e0| 65 20 74 5d 20 5b 22 43 | 6f 6d 70 6c 65 74 65 20 |e t] ["C|omplete |
|000029f0| 45 6e 76 2e 20 56 61 72 | 69 61 62 6c 65 20 4e 61 |Env. Var|iable Na|
|00002a00| 6d 65 22 20 73 68 65 6c | 6c 2d 64 79 6e 61 6d 69 |me" shel|l-dynami|
|00002a10| 63 2d 63 6f 6d 70 6c 65 | 74 65 2d 65 6e 76 69 72 |c-comple|te-envir|
|00002a20| 6f 6e 6d 65 6e 74 2d 76 | 61 72 69 61 62 6c 65 20 |onment-v|ariable |
|00002a30| 3a 61 63 74 69 76 65 20 | 74 20 3a 69 6e 63 6c 75 |:active |t :inclu|
|00002a40| 64 65 64 20 28 65 71 20 | 27 73 68 65 6c 6c 2d 6d |ded (eq |'shell-m|
|00002a50| 6f 64 65 20 6d 61 6a 6f | 72 2d 6d 6f 64 65 29 5d |ode majo|r-mode)]|
|00002a60| 20 5b 22 45 78 70 61 6e | 64 20 44 69 72 65 63 74 | ["Expan|d Direct|
|00002a70| 6f 72 79 20 52 65 66 65 | 72 65 6e 63 65 22 20 73 |ory Refe|rence" s|
|00002a80| 68 65 6c 6c 2d 72 65 70 | 6c 61 63 65 2d 62 79 2d |hell-rep|lace-by-|
|00002a90| 65 78 70 61 6e 64 65 64 | 2d 64 69 72 65 63 74 6f |expanded|-directo|
|00002aa0| 72 79 20 3a 61 63 74 69 | 76 65 20 74 20 3a 69 6e |ry :acti|ve t :in|
|00002ab0| 63 6c 75 64 65 64 20 28 | 65 71 20 27 73 68 65 6c |cluded (|eq 'shel|
|00002ac0| 6c 2d 6d 6f 64 65 20 6d | 61 6a 6f 72 2d 6d 6f 64 |l-mode m|ajor-mod|
|00002ad0| 65 29 5d 20 22 2d 2d 2d | 22 20 5b 22 53 65 6e 64 |e)] "---|" ["Send|
|00002ae0| 20 49 4e 54 22 20 63 6f | 6d 69 6e 74 2d 69 6e 74 | INT" co|mint-int|
|00002af0| 65 72 72 75 70 74 2d 73 | 75 62 6a 6f 62 20 74 5d |errupt-s|ubjob t]|
|00002b00| 20 5b 22 53 65 6e 64 20 | 53 54 4f 50 22 20 63 6f | ["Send |STOP" co|
|00002b10| 6d 69 6e 74 2d 73 74 6f | 70 2d 73 75 62 6a 6f 62 |mint-sto|p-subjob|
|00002b20| 20 74 5d 20 5b 22 53 65 | 6e 64 20 43 4f 4e 54 22 | t] ["Se|nd CONT"|
|00002b30| 20 63 6f 6d 69 6e 74 2d | 63 6f 6e 74 69 6e 75 65 | comint-|continue|
|00002b40| 2d 73 75 62 6a 6f 62 20 | 74 5d 20 5b 22 53 65 6e |-subjob |t] ["Sen|
|00002b50| 64 20 51 55 49 54 22 20 | 63 6f 6d 69 6e 74 2d 71 |d QUIT" |comint-q|
|00002b60| 75 69 74 2d 73 75 62 6a | 6f 62 20 74 5d 20 5b 22 |uit-subj|ob t] ["|
|00002b70| 53 65 6e 64 20 4b 49 4c | 4c 22 20 63 6f 6d 69 6e |Send KIL|L" comin|
|00002b80| 74 2d 6b 69 6c 6c 2d 73 | 75 62 6a 6f 62 20 74 5d |t-kill-s|ubjob t]|
|00002b90| 20 5b 22 53 65 6e 64 20 | 45 4f 46 22 20 63 6f 6d | ["Send |EOF" com|
|00002ba0| 69 6e 74 2d 73 65 6e 64 | 2d 65 6f 66 20 74 5d 29 |int-send|-eof t])|
|00002bb0| 20 63 6f 6d 69 6e 74 2d | 32 2d 6d 65 6e 75 62 61 | comint-|2-menuba|
|00002bc0| 72 2d 6d 65 6e 75 2d 31 | 20 63 6f 6d 69 6e 74 2d |r-menu-1| comint-|
|00002bd0| 68 69 73 74 6f 72 79 2d | 6d 65 6e 75 62 61 72 2d |history-|menubar-|
|00002be0| 6d 65 6e 75 20 28 22 48 | 69 73 74 6f 72 79 22 20 |menu ("H|istory" |
|00002bf0| 3a 66 69 6c 74 65 72 20 | 63 6f 6d 69 6e 74 2d 68 |:filter |comint-h|
|00002c00| 69 73 74 6f 72 79 2d 6d | 65 6e 75 2d 66 69 6c 74 |istory-m|enu-filt|
|00002c10| 65 72 20 5b 22 45 78 70 | 61 6e 64 20 48 69 73 74 |er ["Exp|and Hist|
|00002c20| 6f 72 79 20 42 65 66 6f | 72 65 20 50 6f 69 6e 74 |ory Befo|re Point|
|00002c30| 22 20 63 6f 6d 69 6e 74 | 2d 72 65 70 6c 61 63 65 |" comint|-replace|
|00002c40| 2d 62 79 2d 65 78 70 61 | 6e 64 65 64 2d 68 69 73 |-by-expa|nded-his|
|00002c50| 74 6f 72 79 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |tory com|int-inpu|
|00002c60| 74 2d 61 75 74 6f 65 78 | 70 61 6e 64 5d 20 5b 22 |t-autoex|pand] ["|
|00002c70| 4c 69 73 74 20 49 6e 70 | 75 74 20 48 69 73 74 6f |List Inp|ut Histo|
|00002c80| 72 79 22 20 63 6f 6d 69 | 6e 74 2d 64 79 6e 61 6d |ry" comi|nt-dynam|
|00002c90| 69 63 2d 6c 69 73 74 2d | 69 6e 70 75 74 2d 72 69 |ic-list-|input-ri|
|00002ca0| 6e 67 20 74 5d 20 22 2d | 2d 2d 22 29 20 63 6f 6d |ng t] "-|--") com|
|00002cb0| 69 6e 74 2d 68 69 73 74 | 6f 72 79 2d 6d 65 6e 75 |int-hist|ory-menu|
|00002cc0| 62 61 72 2d 6d 65 6e 75 | 2d 31 5d 20 34 29 0a 23 |bar-menu|-1] 4).#|
|00002cd0| 40 31 36 38 36 20 4d 61 | 6a 6f 72 20 6d 6f 64 65 |@1686 Ma|jor mode|
|00002ce0| 20 66 6f 72 20 69 6e 74 | 65 72 61 63 74 69 6e 67 | for int|eracting|
|00002cf0| 20 77 69 74 68 20 61 6e | 20 69 6e 66 65 72 69 6f | with an| inferio|
|00002d00| 72 20 69 6e 74 65 72 70 | 72 65 74 65 72 2e 0a 49 |r interp|reter..I|
|00002d10| 6e 74 65 72 70 72 65 74 | 65 72 20 6e 61 6d 65 20 |nterpret|er name |
|00002d20| 69 73 20 73 61 6d 65 20 | 61 73 20 62 75 66 66 65 |is same |as buffe|
|00002d30| 72 20 6e 61 6d 65 2c 20 | 73 61 6e 73 20 74 68 65 |r name, |sans the|
|00002d40| 20 61 73 74 65 72 69 73 | 6b 73 2e 0a 52 65 74 75 | asteris|ks..Retu|
|00002d50| 72 6e 20 61 74 20 65 6e | 64 20 6f 66 20 62 75 66 |rn at en|d of buf|
|00002d60| 66 65 72 20 73 65 6e 64 | 73 20 6c 69 6e 65 20 61 |fer send|s line a|
|00002d70| 73 20 69 6e 70 75 74 2e | 0a 52 65 74 75 72 6e 20 |s input.|.Return |
|00002d80| 6e 6f 74 20 61 74 20 65 | 6e 64 20 63 6f 70 69 65 |not at e|nd copie|
|00002d90| 73 20 72 65 73 74 20 6f | 66 20 6c 69 6e 65 20 74 |s rest o|f line t|
|00002da0| 6f 20 65 6e 64 20 61 6e | 64 20 73 65 6e 64 73 20 |o end an|d sends |
|00002db0| 69 74 2e 0a 53 65 74 74 | 69 6e 67 20 76 61 72 69 |it..Sett|ing vari|
|00002dc0| 61 62 6c 65 20 60 63 6f | 6d 69 6e 74 2d 65 6f 6c |able `co|mint-eol|
|00002dd0| 2d 6f 6e 2d 73 65 6e 64 | 27 20 6d 65 61 6e 73 20 |-on-send|' means |
|00002de0| 6a 75 6d 70 20 74 6f 20 | 74 68 65 20 65 6e 64 20 |jump to |the end |
|00002df0| 6f 66 20 74 68 65 20 6c | 69 6e 65 0a 62 65 66 6f |of the l|ine.befo|
|00002e00| 72 65 20 73 75 62 6d 69 | 74 74 69 6e 67 20 6e 65 |re submi|tting ne|
|00002e10| 77 20 69 6e 70 75 74 2e | 0a 0a 54 68 69 73 20 6d |w input.|..This m|
|00002e20| 6f 64 65 20 69 73 20 63 | 75 73 74 6f 6d 69 73 65 |ode is c|ustomise|
|00002e30| 64 20 74 6f 20 63 72 65 | 61 74 65 20 6d 61 6a 6f |d to cre|ate majo|
|00002e40| 72 20 6d 6f 64 65 73 20 | 73 75 63 68 20 61 73 20 |r modes |such as |
|00002e50| 49 6e 66 65 72 69 6f 72 | 20 4c 69 73 70 0a 6d 6f |Inferior| Lisp.mo|
|00002e60| 64 65 2c 20 53 68 65 6c | 6c 20 6d 6f 64 65 2c 20 |de, Shel|l mode, |
|00002e70| 65 74 63 2e 20 20 54 68 | 69 73 20 63 61 6e 20 62 |etc. Th|is can b|
|00002e80| 65 20 64 6f 6e 65 20 62 | 79 20 73 65 74 74 69 6e |e done b|y settin|
|00002e90| 67 20 74 68 65 20 68 6f | 6f 6b 73 0a 60 63 6f 6d |g the ho|oks.`com|
|00002ea0| 69 6e 74 2d 69 6e 70 75 | 74 2d 66 69 6c 74 65 72 |int-inpu|t-filter|
|00002eb0| 2d 66 75 6e 63 74 69 6f | 6e 73 27 2c 20 60 63 6f |-functio|ns', `co|
|00002ec0| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 66 69 6c 74 65 |mint-inp|ut-filte|
|00002ed0| 72 27 2c 20 60 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |r', `com|int-inpu|
|00002ee0| 74 2d 73 65 6e 64 65 72 | 27 0a 61 6e 64 20 60 63 |t-sender|'.and `c|
|00002ef0| 6f 6d 69 6e 74 2d 67 65 | 74 2d 6f 6c 64 2d 69 6e |omint-ge|t-old-in|
|00002f00| 70 75 74 27 20 74 6f 20 | 61 70 70 72 6f 70 72 69 |put' to |appropri|
|00002f10| 61 74 65 20 66 75 6e 63 | 74 69 6f 6e 73 2c 20 61 |ate func|tions, a|
|00002f20| 6e 64 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 0a |nd the v|ariable.|
|00002f30| 60 63 6f 6d 69 6e 74 2d | 70 72 6f 6d 70 74 2d 72 |`comint-|prompt-r|
|00002f40| 65 67 65 78 70 27 20 74 | 6f 20 74 68 65 20 61 70 |egexp' t|o the ap|
|00002f50| 70 72 6f 70 72 69 61 74 | 65 20 72 65 67 75 6c 61 |propriat|e regula|
|00002f60| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 2e 0a 0a 41 |r expres|sion...A|
|00002f70| 6e 20 69 6e 70 75 74 20 | 68 69 73 74 6f 72 79 20 |n input |history |
|00002f80| 69 73 20 6d 61 69 6e 74 | 61 69 6e 65 64 20 6f 66 |is maint|ained of|
|00002f90| 20 73 69 7a 65 20 60 63 | 6f 6d 69 6e 74 2d 69 6e | size `c|omint-in|
|00002fa0| 70 75 74 2d 72 69 6e 67 | 2d 73 69 7a 65 27 2c 20 |put-ring|-size', |
|00002fb0| 61 6e 64 0a 63 61 6e 20 | 62 65 20 61 63 63 65 73 |and.can |be acces|
|00002fc0| 73 65 64 20 77 69 74 68 | 20 74 68 65 20 63 6f 6d |sed with| the com|
|00002fd0| 6d 61 6e 64 73 20 5c 5b | 63 6f 6d 69 6e 74 2d 6e |mands \[|comint-n|
|00002fe0| 65 78 74 2d 69 6e 70 75 | 74 5d 2c 20 5c 5b 63 6f |ext-inpu|t], \[co|
|00002ff0| 6d 69 6e 74 2d 70 72 65 | 76 69 6f 75 73 2d 69 6e |mint-pre|vious-in|
|00003000| 70 75 74 5d 2c 20 61 6e | 64 20 5c 5b 63 6f 6d 69 |put], an|d \[comi|
|00003010| 6e 74 2d 64 79 6e 61 6d | 69 63 2d 6c 69 73 74 2d |nt-dynam|ic-list-|
|00003020| 69 6e 70 75 74 2d 72 69 | 6e 67 5d 2e 0a 49 6e 70 |input-ri|ng]..Inp|
|00003030| 75 74 20 72 69 6e 67 20 | 68 69 73 74 6f 72 79 20 |ut ring |history |
|00003040| 65 78 70 61 6e 73 69 6f | 6e 20 63 61 6e 20 62 65 |expansio|n can be|
|00003050| 20 61 63 68 69 65 76 65 | 64 20 77 69 74 68 20 74 | achieve|d with t|
|00003060| 68 65 20 63 6f 6d 6d 61 | 6e 64 73 0a 5c 5b 63 6f |he comma|nds.\[co|
|00003070| 6d 69 6e 74 2d 72 65 70 | 6c 61 63 65 2d 62 79 2d |mint-rep|lace-by-|
|00003080| 65 78 70 61 6e 64 65 64 | 2d 68 69 73 74 6f 72 79 |expanded|-history|
|00003090| 5d 20 6f 72 20 5c 5b 63 | 6f 6d 69 6e 74 2d 6d 61 |] or \[c|omint-ma|
|000030a0| 67 69 63 2d 73 70 61 63 | 65 5d 2e 0a 49 6e 70 75 |gic-spac|e]..Inpu|
|000030b0| 74 20 72 69 6e 67 20 65 | 78 70 61 6e 73 69 6f 6e |t ring e|xpansion|
|000030c0| 20 69 73 20 63 6f 6e 74 | 72 6f 6c 6c 65 64 20 62 | is cont|rolled b|
|000030d0| 79 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 60 |y the va|riable `|
|000030e0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 61 75 74 |comint-i|nput-aut|
|000030f0| 6f 65 78 70 61 6e 64 27 | 2c 0a 61 6e 64 20 61 64 |oexpand'|,.and ad|
|00003100| 64 69 74 69 6f 6e 20 69 | 73 20 63 6f 6e 74 72 6f |dition i|s contro|
|00003110| 6c 6c 65 64 20 62 79 20 | 74 68 65 20 76 61 72 69 |lled by |the vari|
|00003120| 61 62 6c 65 20 60 63 6f | 6d 69 6e 74 2d 69 6e 70 |able `co|mint-inp|
|00003130| 75 74 2d 69 67 6e 6f 72 | 65 64 75 70 73 27 2e 0a |ut-ignor|edups'..|
|00003140| 0a 43 6f 6d 6d 61 6e 64 | 73 20 77 69 74 68 20 6e |.Command|s with n|
|00003150| 6f 20 64 65 66 61 75 6c | 74 20 6b 65 79 20 62 69 |o defaul|t key bi|
|00003160| 6e 64 69 6e 67 73 20 69 | 6e 63 6c 75 64 65 20 60 |ndings i|nclude `|
|00003170| 73 65 6e 64 2d 69 6e 76 | 69 73 69 62 6c 65 27 2c |send-inv|isible',|
|00003180| 0a 60 63 6f 6d 69 6e 74 | 2d 64 79 6e 61 6d 69 63 |.`comint|-dynamic|
|00003190| 2d 63 6f 6d 70 6c 65 74 | 65 27 2c 20 60 63 6f 6d |-complet|e', `com|
|000031a0| 69 6e 74 2d 64 79 6e 61 | 6d 69 63 2d 6c 69 73 74 |int-dyna|mic-list|
|000031b0| 2d 66 69 6c 65 6e 61 6d | 65 2d 63 6f 6d 70 6c 65 |-filenam|e-comple|
|000031c0| 74 69 6f 6e 73 27 2c 20 | 61 6e 64 0a 60 63 6f 6d |tions', |and.`com|
|000031d0| 69 6e 74 2d 6d 61 67 69 | 63 2d 73 70 61 63 65 27 |int-magi|c-space'|
|000031e0| 2e 0a 0a 49 6e 70 75 74 | 20 74 6f 2c 20 61 6e 64 |...Input| to, and|
|000031f0| 20 6f 75 74 70 75 74 20 | 66 72 6f 6d 2c 20 74 68 | output |from, th|
|00003200| 65 20 73 75 62 70 72 6f | 63 65 73 73 20 63 61 6e |e subpro|cess can|
|00003210| 20 63 61 75 73 65 20 74 | 68 65 20 77 69 6e 64 6f | cause t|he windo|
|00003220| 77 20 74 6f 20 73 63 72 | 6f 6c 6c 20 74 6f 0a 74 |w to scr|oll to.t|
|00003230| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 62 75 |he end o|f the bu|
|00003240| 66 66 65 72 2e 20 20 53 | 65 65 20 76 61 72 69 61 |ffer. S|ee varia|
|00003250| 62 6c 65 73 20 60 63 6f | 6d 69 6e 74 2d 6f 75 74 |bles `co|mint-out|
|00003260| 70 75 74 2d 66 69 6c 74 | 65 72 2d 66 75 6e 63 74 |put-filt|er-funct|
|00003270| 69 6f 6e 73 27 2c 0a 60 | 63 6f 6d 69 6e 74 2d 73 |ions',.`|comint-s|
|00003280| 63 72 6f 6c 6c 2d 74 6f | 2d 62 6f 74 74 6f 6d 2d |croll-to|-bottom-|
|00003290| 6f 6e 2d 69 6e 70 75 74 | 27 2c 20 61 6e 64 20 60 |on-input|', and `|
|000032a0| 63 6f 6d 69 6e 74 2d 73 | 63 72 6f 6c 6c 2d 74 6f |comint-s|croll-to|
|000032b0| 2d 62 6f 74 74 6f 6d 2d | 6f 6e 2d 6f 75 74 70 75 |-bottom-|on-outpu|
|000032c0| 74 27 2e 0a 0a 49 66 20 | 79 6f 75 20 61 63 63 69 |t'...If |you acci|
|000032d0| 64 65 6e 74 61 6c 6c 79 | 20 73 75 73 70 65 6e 64 |dentally| suspend|
|000032e0| 20 79 6f 75 72 20 70 72 | 6f 63 65 73 73 2c 20 75 | your pr|ocess, u|
|000032f0| 73 65 20 5c 5b 63 6f 6d | 69 6e 74 2d 63 6f 6e 74 |se \[com|int-cont|
|00003300| 69 6e 75 65 2d 73 75 62 | 6a 6f 62 5d 0a 74 6f 20 |inue-sub|job].to |
|00003310| 63 6f 6e 74 69 6e 75 65 | 20 69 74 2e 0a 0a 5c 7b |continue| it...\{|
|00003320| 63 6f 6d 69 6e 74 2d 6d | 6f 64 65 2d 6d 61 70 7d |comint-m|ode-map}|
|00003330| 0a 0a 45 6e 74 72 79 20 | 74 6f 20 74 68 69 73 20 |..Entry |to this |
|00003340| 6d 6f 64 65 20 72 75 6e | 73 20 74 68 65 20 68 6f |mode run|s the ho|
|00003350| 6f 6b 73 20 6f 6e 20 60 | 63 6f 6d 69 6e 74 2d 6d |oks on `|comint-m|
|00003360| 6f 64 65 2d 68 6f 6f 6b | 27 2e 1f 0a 28 64 65 66 |ode-hook|'...(def|
|00003370| 61 6c 69 61 73 20 27 63 | 6f 6d 69 6e 74 2d 6d 6f |alias 'c|omint-mo|
|00003380| 64 65 20 23 5b 6e 69 6c | 20 22 c0 20 88 c1 12 c3 |de #[nil| ". ....|
|00003390| 14 c5 16 06 c7 0e 08 21 | 88 c9 ca 21 88 cb 20 89 |.......!|...!.. .|
|000033a0| 16 5c 6e 65 cc 93 88 c9 | cd 21 88 cb 20 89 16 0d |.\ne....|.!.. ...|
|000033b0| 65 cc 93 88 c9 ce 21 88 | cb 20 16 0e c9 cf 21 88 |e.....!.|. ....!.|
|000033c0| c9 d0 21 88 c9 d1 21 88 | c9 d2 21 88 d3 d1 21 ab |..!...!.|..!...!.|
|000033d0| 84 0e 11 ac 86 d4 0e 10 | 21 16 11 c9 d5 21 88 d3 |........|!....!..|
|000033e0| d5 21 ab 84 0e 15 ac 83 | cc 16 15 c9 d6 21 88 c9 |.!......|.....!..|
|000033f0| d7 21 88 c9 d8 21 88 c9 | d9 21 88 da db 21 88 c9 |.!...!..|.!...!..|
|00003400| dc 21 88 c9 dd 21 88 da | de 21 88 c9 df 21 88 c9 |.!...!..|.!...!..|
|00003410| e0 21 88 c9 e1 21 88 c9 | e2 21 88 c9 e3 21 88 c9 |.!...!..|.!...!..|
|00003420| e4 21 88 da e5 21 88 e6 | e5 e7 cc e8 24 88 da e9 |.!...!..|....$...|
|00003430| 21 88 c9 ea 21 88 da eb | 21 88 c9 ec 21 88 c9 ed |!...!...|!...!...|
|00003440| 21 88 ee ef 21 ab ef 0e | 30 ac 9c d3 f0 21 ac 83 |!...!...|0....!..|
|00003450| cc 16 30 f0 0e 31 42 16 | 31 f2 f0 f3 f4 23 88 f5 |..0..1B.|1....#..|
|00003460| f0 cc f4 0e 36 24 88 f7 | 0e 30 21 88 0e 38 ac 9c |....6$..|.0!..8..|
|00003470| d3 f8 21 ac 83 cc 16 38 | f8 0e 31 42 16 31 f2 f8 |..!....8|..1B.1..|
|00003480| f3 f4 23 88 f5 f8 cc f4 | 0e 39 24 88 f7 0e 38 21 |..#.....|.9$...8!|
|00003490| 88 0e 3a ac 9c d3 fa 21 | ac 83 cc 16 3a fa 0e 31 |..:....!|....:..1|
|000034a0| 42 16 31 f2 fa f3 f4 23 | 88 f5 fa cc f4 0e 3b 24 |B.1....#|......;$|
|000034b0| 88 f7 0e 3a 21 88 fc fd | 21 87 22 20 5b 6b 69 6c |...:!...|!." [kil|
|000034c0| 6c 2d 61 6c 6c 2d 6c 6f | 63 61 6c 2d 76 61 72 69 |l-all-lo|cal-vari|
|000034d0| 61 62 6c 65 73 20 63 6f | 6d 69 6e 74 2d 6d 6f 64 |ables co|mint-mod|
|000034e0| 65 20 6d 61 6a 6f 72 2d | 6d 6f 64 65 20 22 43 6f |e major-|mode "Co|
|000034f0| 6d 69 6e 74 22 20 6d 6f | 64 65 2d 6e 61 6d 65 20 |mint" mo|de-name |
|00003500| 28 22 3a 20 25 73 22 29 | 20 6d 6f 64 65 2d 6c 69 |(": %s")| mode-li|
|00003510| 6e 65 2d 70 72 6f 63 65 | 73 73 20 75 73 65 2d 6c |ne-proce|ss use-l|
|00003520| 6f 63 61 6c 2d 6d 61 70 | 20 63 6f 6d 69 6e 74 2d |ocal-map| comint-|
|00003530| 6d 6f 64 65 2d 6d 61 70 | 20 6d 61 6b 65 2d 6c 6f |mode-map| make-lo|
|00003540| 63 61 6c 2d 76 61 72 69 | 61 62 6c 65 20 63 6f 6d |cal-vari|able com|
|00003550| 69 6e 74 2d 6c 61 73 74 | 2d 69 6e 70 75 74 2d 73 |int-last|-input-s|
|00003560| 74 61 72 74 20 6d 61 6b | 65 2d 6d 61 72 6b 65 72 |tart mak|e-marker|
|00003570| 20 6e 69 6c 20 63 6f 6d | 69 6e 74 2d 6c 61 73 74 | nil com|int-last|
|00003580| 2d 69 6e 70 75 74 2d 65 | 6e 64 20 63 6f 6d 69 6e |-input-e|nd comin|
|00003590| 74 2d 6c 61 73 74 2d 6f | 75 74 70 75 74 2d 73 74 |t-last-o|utput-st|
|000035a0| 61 72 74 20 63 6f 6d 69 | 6e 74 2d 70 72 6f 6d 70 |art comi|nt-promp|
|000035b0| 74 2d 72 65 67 65 78 70 | 20 63 6f 6d 69 6e 74 2d |t-regexp| comint-|
|000035c0| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 73 69 7a 65 20 |input-ri|ng-size |
|000035d0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 72 69 6e |comint-i|nput-rin|
|000035e0| 67 20 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 |g comint|-input-r|
|000035f0| 69 6e 67 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 62 6f |ing-file|-name bo|
|00003600| 75 6e 64 70 20 6d 61 6b | 65 2d 72 69 6e 67 20 63 |undp mak|e-ring c|
|00003610| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00003620| 2d 69 6e 64 65 78 20 63 | 6f 6d 69 6e 74 2d 6d 61 |-index c|omint-ma|
|00003630| 74 63 68 69 6e 67 2d 69 | 6e 70 75 74 2d 66 72 6f |tching-i|nput-fro|
|00003640| 6d 2d 69 6e 70 75 74 2d | 73 74 72 69 6e 67 20 63 |m-input-|string c|
|00003650| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 61 75 74 6f |omint-in|put-auto|
|00003660| 65 78 70 61 6e 64 20 63 | 6f 6d 69 6e 74 2d 69 6e |expand c|omint-in|
|00003670| 70 75 74 2d 69 67 6e 6f | 72 65 64 75 70 73 20 63 |put-igno|redups c|
|00003680| 6f 6d 69 6e 74 2d 64 65 | 6c 69 6d 69 74 65 72 2d |omint-de|limiter-|
|00003690| 61 72 67 75 6d 65 6e 74 | 2d 6c 69 73 74 20 6d 61 |argument|-list ma|
|000036a0| 6b 65 2d 6c 6f 63 61 6c | 2d 68 6f 6f 6b 20 63 6f |ke-local|-hook co|
|000036b0| 6d 69 6e 74 2d 64 79 6e | 61 6d 69 63 2d 63 6f 6d |mint-dyn|amic-com|
|000036c0| 70 6c 65 74 65 2d 66 75 | 6e 63 74 69 6f 6e 73 20 |plete-fu|nctions |
|000036d0| 63 6f 6d 69 6e 74 2d 63 | 6f 6d 70 6c 65 74 69 6f |comint-c|ompletio|
|000036e0| 6e 2d 66 69 67 6e 6f 72 | 65 20 63 6f 6d 69 6e 74 |n-fignor|e comint|
|000036f0| 2d 67 65 74 2d 6f 6c 64 | 2d 69 6e 70 75 74 20 63 |-get-old|-input c|
|00003700| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 66 69 6c 74 |omint-in|put-filt|
|00003710| 65 72 2d 66 75 6e 63 74 | 69 6f 6e 73 20 63 6f 6d |er-funct|ions com|
|00003720| 69 6e 74 2d 69 6e 70 75 | 74 2d 66 69 6c 74 65 72 |int-inpu|t-filter|
|00003730| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 73 65 | comint-|input-se|
|00003740| 6e 64 65 72 20 63 6f 6d | 69 6e 74 2d 65 6f 6c 2d |nder com|int-eol-|
|00003750| 6f 6e 2d 73 65 6e 64 20 | 63 6f 6d 69 6e 74 2d 73 |on-send |comint-s|
|00003760| 63 72 6f 6c 6c 2d 74 6f | 2d 62 6f 74 74 6f 6d 2d |croll-to|-bottom-|
|00003770| 6f 6e 2d 69 6e 70 75 74 | 20 63 6f 6d 69 6e 74 2d |on-input| comint-|
|00003780| 73 63 72 6f 6c 6c 2d 74 | 6f 2d 62 6f 74 74 6f 6d |scroll-t|o-bottom|
|00003790| 2d 6f 6e 2d 6f 75 74 70 | 75 74 20 63 6f 6d 69 6e |-on-outp|ut comin|
|000037a0| 74 2d 73 63 72 6f 6c 6c | 2d 73 68 6f 77 2d 6d 61 |t-scroll|-show-ma|
|000037b0| 78 69 6d 75 6d 2d 6f 75 | 74 70 75 74 20 70 72 65 |ximum-ou|tput pre|
|000037c0| 2d 63 6f 6d 6d 61 6e 64 | 2d 68 6f 6f 6b 20 61 64 |-command|-hook ad|
|000037d0| 64 2d 68 6f 6f 6b 20 63 | 6f 6d 69 6e 74 2d 70 72 |d-hook c|omint-pr|
|000037e0| 65 69 6e 70 75 74 2d 73 | 63 72 6f 6c 6c 2d 74 6f |einput-s|croll-to|
|000037f0| 2d 62 6f 74 74 6f 6d 20 | 74 20 63 6f 6d 69 6e 74 |-bottom |t comint|
|00003800| 2d 6f 75 74 70 75 74 2d | 66 69 6c 74 65 72 2d 66 |-output-|filter-f|
|00003810| 75 6e 63 74 69 6f 6e 73 | 20 63 6f 6d 69 6e 74 2d |unctions| comint-|
|00003820| 70 74 79 70 20 63 6f 6d | 69 6e 74 2d 65 78 65 63 |ptyp com|int-exec|
|00003830| 2d 68 6f 6f 6b 20 63 6f | 6d 69 6e 74 2d 70 72 6f |-hook co|mint-pro|
|00003840| 63 65 73 73 2d 65 63 68 | 6f 65 73 20 63 6f 6d 69 |cess-ech|oes comi|
|00003850| 6e 74 2d 66 69 6c 65 2d | 6e 61 6d 65 2d 71 75 6f |nt-file-|name-quo|
|00003860| 74 65 2d 6c 69 73 74 20 | 66 65 61 74 75 72 65 70 |te-list |featurep|
|00003870| 20 6d 65 6e 75 62 61 72 | 20 63 6f 6d 69 6e 74 2d | menubar| comint-|
|00003880| 31 2d 6d 65 6e 75 62 61 | 72 2d 6d 65 6e 75 20 63 |1-menuba|r-menu c|
|00003890| 75 72 72 65 6e 74 2d 6c | 6f 61 64 2d 6c 69 73 74 |urrent-l|oad-list|
|000038a0| 20 70 75 74 20 76 61 72 | 69 61 62 6c 65 2d 64 6f | put var|iable-do|
|000038b0| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 22 22 20 65 |cumentat|ion "" e|
|000038c0| 61 73 79 2d 6d 65 6e 75 | 2d 64 6f 2d 64 65 66 69 |asy-menu|-do-defi|
|000038d0| 6e 65 20 63 6f 6d 69 6e | 74 2d 31 2d 6d 65 6e 75 |ne comin|t-1-menu|
|000038e0| 62 61 72 2d 6d 65 6e 75 | 2d 31 20 65 61 73 79 2d |bar-menu|-1 easy-|
|000038f0| 6d 65 6e 75 2d 61 64 64 | 20 63 6f 6d 69 6e 74 2d |menu-add| comint-|
|00003900| 32 2d 6d 65 6e 75 62 61 | 72 2d 6d 65 6e 75 20 63 |2-menuba|r-menu c|
|00003910| 6f 6d 69 6e 74 2d 32 2d | 6d 65 6e 75 62 61 72 2d |omint-2-|menubar-|
|00003920| 6d 65 6e 75 2d 31 20 63 | 6f 6d 69 6e 74 2d 68 69 |menu-1 c|omint-hi|
|00003930| 73 74 6f 72 79 2d 6d 65 | 6e 75 62 61 72 2d 6d 65 |story-me|nubar-me|
|00003940| 6e 75 20 63 6f 6d 69 6e | 74 2d 68 69 73 74 6f 72 |nu comin|t-histor|
|00003950| 79 2d 6d 65 6e 75 62 61 | 72 2d 6d 65 6e 75 2d 31 |y-menuba|r-menu-1|
|00003960| 20 72 75 6e 2d 68 6f 6f | 6b 73 20 63 6f 6d 69 6e | run-hoo|ks comin|
|00003970| 74 2d 6d 6f 64 65 2d 68 | 6f 6f 6b 5d 20 36 20 28 |t-mode-h|ook] 6 (|
|00003980| 23 24 20 2e 20 31 31 34 | 37 38 29 20 6e 69 6c 5d |#$ . 114|78) nil]|
|00003990| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 08 84 |).(byte-|code "..|
|000039a0| a2 00 c1 20 10 c2 08 c0 | 5c 22 88 c3 08 c4 c5 23 |... ....|\".....#|
|000039b0| 88 c3 08 c6 c7 23 88 c3 | 08 c8 c5 23 88 c3 08 c9 |.....#..|...#....|
|000039c0| c7 23 88 c3 08 ca cb 23 | 88 c3 08 cc cd 23 88 c3 |.#.....#|.....#..|
|000039d0| 08 ce cf 23 88 c3 08 d0 | d1 23 88 c3 08 d2 d1 23 |...#....|.#.....#|
|000039e0| 88 c3 08 d3 d4 23 88 c3 | 08 d5 d6 23 88 c3 08 d7 |.....#..|...#....|
|000039f0| d8 23 88 c3 08 d9 da 23 | 88 c3 08 db dc 23 88 c3 |.#.....#|.....#..|
|00003a00| 08 dd de 23 88 c3 08 df | e0 23 88 c3 08 e1 e2 23 |...#....|.#.....#|
|00003a10| 88 c3 08 e3 e4 23 88 c3 | 08 e5 e6 23 88 c3 08 e7 |.....#..|...#....|
|00003a20| e8 23 88 c3 08 e9 ea 23 | 88 c3 08 eb ec 23 88 c3 |.#.....#|.....#..|
|00003a30| 08 ed ea 23 88 c3 08 ee | ec 23 88 c3 08 ef f0 23 |...#....|.#.....#|
|00003a40| 88 c1 87 22 20 5b 63 6f | 6d 69 6e 74 2d 6d 6f 64 |..." [co|mint-mod|
|00003a50| 65 2d 6d 61 70 20 6d 61 | 6b 65 2d 73 70 61 72 73 |e-map ma|ke-spars|
|00003a60| 65 2d 6b 65 79 6d 61 70 | 20 73 65 74 2d 6b 65 79 |e-keymap| set-key|
|00003a70| 6d 61 70 2d 6e 61 6d 65 | 20 64 65 66 69 6e 65 2d |map-name| define-|
|00003a80| 6b 65 79 20 22 1b 70 22 | 20 63 6f 6d 69 6e 74 2d |key ".p"| comint-|
|00003a90| 70 72 65 76 69 6f 75 73 | 2d 6d 61 74 63 68 69 6e |previous|-matchin|
|00003aa0| 67 2d 69 6e 70 75 74 2d | 66 72 6f 6d 2d 69 6e 70 |g-input-|from-inp|
|00003ab0| 75 74 20 22 1b 6e 22 20 | 63 6f 6d 69 6e 74 2d 6e |ut ".n" |comint-n|
|00003ac0| 65 78 74 2d 6d 61 74 63 | 68 69 6e 67 2d 69 6e 70 |ext-matc|hing-inp|
|00003ad0| 75 74 2d 66 72 6f 6d 2d | 69 6e 70 75 74 20 28 63 |ut-from-|input (c|
|00003ae0| 6f 6e 74 72 6f 6c 20 75 | 70 29 20 28 63 6f 6e 74 |ontrol u|p) (cont|
|00003af0| 72 6f 6c 20 64 6f 77 6e | 29 20 22 1b 72 22 20 63 |rol down|) ".r" c|
|00003b00| 6f 6d 69 6e 74 2d 70 72 | 65 76 69 6f 75 73 2d 6d |omint-pr|evious-m|
|00003b10| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 20 22 1b |atching-|input ".|
|00003b20| 73 22 20 63 6f 6d 69 6e | 74 2d 6e 65 78 74 2d 6d |s" comin|t-next-m|
|00003b30| 61 74 63 68 69 6e 67 2d | 69 6e 70 75 74 20 22 0d |atching-|input ".|
|00003b40| 22 20 63 6f 6d 69 6e 74 | 2d 73 65 6e 64 2d 69 6e |" comint|-send-in|
|00003b50| 70 75 74 20 22 01 22 20 | 63 6f 6d 69 6e 74 2d 62 |put "." |comint-b|
|00003b60| 6f 6c 20 22 03 01 22 20 | 22 03 15 22 20 63 6f 6d |ol ".." |".." com|
|00003b70| 69 6e 74 2d 6b 69 6c 6c | 2d 69 6e 70 75 74 20 22 |int-kill|-input "|
|00003b80| 03 17 22 20 62 61 63 6b | 77 61 72 64 2d 6b 69 6c |.." back|ward-kil|
|00003b90| 6c 2d 77 6f 72 64 20 22 | 03 03 22 20 63 6f 6d 69 |l-word "|.." comi|
|00003ba0| 6e 74 2d 69 6e 74 65 72 | 72 75 70 74 2d 73 75 62 |nt-inter|rupt-sub|
|00003bb0| 6a 6f 62 20 22 03 1a 22 | 20 63 6f 6d 69 6e 74 2d |job ".."| comint-|
|00003bc0| 73 74 6f 70 2d 73 75 62 | 6a 6f 62 20 22 03 1c 22 |stop-sub|job ".."|
|00003bd0| 20 63 6f 6d 69 6e 74 2d | 71 75 69 74 2d 73 75 62 | comint-|quit-sub|
|00003be0| 6a 6f 62 20 22 03 0d 22 | 20 63 6f 6d 69 6e 74 2d |job ".."| comint-|
|00003bf0| 63 6f 70 79 2d 6f 6c 64 | 2d 69 6e 70 75 74 20 22 |copy-old|-input "|
|00003c00| 03 0f 22 20 63 6f 6d 69 | 6e 74 2d 6b 69 6c 6c 2d |.." comi|nt-kill-|
|00003c10| 6f 75 74 70 75 74 20 22 | 03 12 22 20 63 6f 6d 69 |output "|.." comi|
|00003c20| 6e 74 2d 73 68 6f 77 2d | 6f 75 74 70 75 74 20 22 |nt-show-|output "|
|00003c30| 03 05 22 20 63 6f 6d 69 | 6e 74 2d 73 68 6f 77 2d |.." comi|nt-show-|
|00003c40| 6d 61 78 69 6d 75 6d 2d | 6f 75 74 70 75 74 20 22 |maximum-|output "|
|00003c50| 03 0c 22 20 63 6f 6d 69 | 6e 74 2d 64 79 6e 61 6d |.." comi|nt-dynam|
|00003c60| 69 63 2d 6c 69 73 74 2d | 69 6e 70 75 74 2d 72 69 |ic-list-|input-ri|
|00003c70| 6e 67 20 22 03 04 22 20 | 63 6f 6d 69 6e 74 2d 73 |ng ".." |comint-s|
|00003c80| 65 6e 64 2d 65 6f 66 20 | 22 03 0e 22 20 63 6f 6d |end-eof |".." com|
|00003c90| 69 6e 74 2d 6e 65 78 74 | 2d 70 72 6f 6d 70 74 20 |int-next|-prompt |
|00003ca0| 22 03 10 22 20 63 6f 6d | 69 6e 74 2d 70 72 65 76 |".." com|int-prev|
|00003cb0| 69 6f 75 73 2d 70 72 6f | 6d 70 74 20 22 1b 7d 22 |ious-pro|mpt ".}"|
|00003cc0| 20 22 1b 7b 22 20 62 75 | 74 74 6f 6e 33 20 63 6f | ".{" bu|tton3 co|
|00003cd0| 6d 69 6e 74 2d 70 6f 70 | 75 70 2d 6d 65 6e 75 5d |mint-pop|up-menu]|
|00003ce0| 20 34 29 0a 23 40 33 31 | 20 44 69 73 70 6c 61 79 | 4).#@31| Display|
|00003cf0| 20 74 68 65 20 63 6f 6d | 69 6e 74 2d 6d 6f 64 65 | the com|int-mode|
|00003d00| 20 6d 65 6e 75 2e 1f 0a | 28 64 65 66 61 6c 69 61 | menu...|(defalia|
|00003d10| 73 20 27 63 6f 6d 69 6e | 74 2d 70 6f 70 75 70 2d |s 'comin|t-popup-|
|00003d20| 6d 65 6e 75 20 23 5b 28 | 65 76 65 6e 74 29 20 22 |menu #[(|event) "|
|00003d30| c0 20 19 c2 09 ab 8a c3 | 0c c5 c6 09 42 44 5c 22 |. ......|....BD\"|
|00003d40| aa 81 0c 21 29 87 22 20 | 5b 63 6f 6d 69 6e 74 2d |...!)." |[comint-|
|00003d50| 6d 61 6b 65 2d 68 69 73 | 74 6f 72 79 2d 6d 65 6e |make-his|tory-men|
|00003d60| 75 20 68 69 73 74 6f 72 | 79 20 70 6f 70 75 70 2d |u histor|y popup-|
|00003d70| 6d 65 6e 75 20 61 70 70 | 65 6e 64 20 6d 6f 64 65 |menu app|end mode|
|00003d80| 2d 70 6f 70 75 70 2d 6d | 65 6e 75 20 22 2d 2d 2d |-popup-m|enu "---|
|00003d90| 22 20 22 43 6f 6d 6d 61 | 6e 64 20 48 69 73 74 6f |" "Comma|nd Histo|
|00003da0| 72 79 22 5d 20 36 20 28 | 23 24 20 2e 20 31 35 35 |ry"] 6 (|#$ . 155|
|00003db0| 39 33 29 20 22 40 65 22 | 5d 29 0a 28 63 75 73 74 |93) "@e"|]).(cust|
|00003dc0| 6f 6d 2d 64 65 63 6c 61 | 72 65 2d 76 61 72 69 61 |om-decla|re-varia|
|00003dd0| 62 6c 65 20 27 63 6f 6d | 69 6e 74 2d 68 69 73 74 |ble 'com|int-hist|
|00003de0| 6f 72 79 2d 6d 65 6e 75 | 2d 6d 61 78 20 27 34 30 |ory-menu|-max '40|
|00003df0| 20 22 2a 4d 61 78 69 6d | 75 6d 20 6e 75 6d 62 65 | "*Maxim|um numbe|
|00003e00| 72 20 6f 66 20 65 6e 74 | 72 69 65 73 20 74 6f 20 |r of ent|ries to |
|00003e10| 64 69 73 70 6c 61 79 20 | 6f 6e 20 74 68 65 20 43 |display |on the C|
|00003e20| 6f 6d 69 6e 74 20 63 6f | 6d 6d 61 6e 64 2d 68 69 |omint co|mmand-hi|
|00003e30| 73 74 6f 72 79 20 6d 65 | 6e 75 2e 22 20 3a 74 79 |story me|nu." :ty|
|00003e40| 70 65 20 27 69 6e 74 65 | 67 65 72 20 3a 67 72 6f |pe 'inte|ger :gro|
|00003e50| 75 70 20 27 63 6f 6d 69 | 6e 74 29 0a 28 64 65 66 |up 'comi|nt).(def|
|00003e60| 61 6c 69 61 73 20 27 63 | 6f 6d 69 6e 74 2d 68 69 |alias 'c|omint-hi|
|00003e70| 73 74 6f 72 79 2d 6d 65 | 6e 75 2d 66 69 6c 74 65 |story-me|nu-filte|
|00003e80| 72 20 23 5b 28 6d 65 6e | 75 29 20 22 c0 09 c2 20 |r #[(men|u) "... |
|00003e90| 5c 22 87 22 20 5b 61 70 | 70 65 6e 64 20 6d 65 6e |\"." [ap|pend men|
|00003ea0| 75 20 63 6f 6d 69 6e 74 | 2d 6d 61 6b 65 2d 68 69 |u comint|-make-hi|
|00003eb0| 73 74 6f 72 79 2d 6d 65 | 6e 75 5d 20 33 5d 29 0a |story-me|nu] 3]).|
|00003ec0| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00003ed0| 74 2d 6d 61 6b 65 2d 68 | 69 73 74 6f 72 79 2d 6d |t-make-h|istory-m|
|00003ee0| 65 6e 75 20 23 5b 6e 69 | 6c 20 22 c0 09 21 3f ae |enu #[ni|l "..!?.|
|00003ef0| 83 c2 09 21 3f ad c6 c3 | 89 c4 09 21 53 c5 1e 06 |...!?...|...!S...|
|00003f00| 1e 07 1e 08 1e 09 0e 07 | c5 59 ab ae 0e 5c 6e ab |........|.Y...\n.|
|00003f10| aa 0e 06 0e 5c 6e 57 ab | a3 cb 09 0e 07 5c 22 16 |....\nW.|.....\".|
|00003f20| 08 cc cd ce 0e 08 44 cf | 0e 08 24 0e 09 42 16 09 |......D.|..$..B..|
|00003f30| 0e 06 54 16 06 0e 07 53 | 89 16 07 aa 4e 0e 09 2c |..T....S|....N..,|
|00003f40| 87 22 20 5b 72 69 6e 67 | 70 20 63 6f 6d 69 6e 74 |." [ring|p comint|
|00003f50| 2d 69 6e 70 75 74 2d 72 | 69 6e 67 20 72 69 6e 67 |-input-r|ing ring|
|00003f60| 2d 65 6d 70 74 79 2d 70 | 20 6e 69 6c 20 72 69 6e |-empty-p| nil rin|
|00003f70| 67 2d 6c 65 6e 67 74 68 | 20 30 20 63 6f 75 6e 74 |g-length| 0 count|
|00003f80| 20 69 6e 64 65 78 20 68 | 69 73 74 20 6d 65 6e 75 | index h|ist menu|
|00003f90| 20 63 6f 6d 69 6e 74 2d | 68 69 73 74 6f 72 79 2d | comint-|history-|
|00003fa0| 6d 65 6e 75 2d 6d 61 78 | 20 72 69 6e 67 2d 72 65 |menu-max| ring-re|
|00003fb0| 66 20 76 65 63 74 6f 72 | 20 22 22 20 63 6f 6d 69 |f vector| "" comi|
|00003fc0| 6e 74 2d 6d 65 6e 75 2d | 68 69 73 74 6f 72 79 20 |nt-menu-|history |
|00003fd0| 74 5d 20 36 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |t] 6]).(|defalias|
|00003fe0| 20 27 63 6f 6d 69 6e 74 | 2d 6d 65 6e 75 2d 68 69 | 'comint|-menu-hi|
|00003ff0| 73 74 6f 72 79 20 23 5b | 28 73 74 72 69 6e 67 29 |story #[|(string)|
|00004000| 20 22 64 62 88 c0 c1 70 | 21 21 60 7c 88 5c 6e 63 | "db...p|!!`|.\nc|
|00004010| 87 22 20 5b 70 72 6f 63 | 65 73 73 2d 6d 61 72 6b |." [proc|ess-mark|
|00004020| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 70 72 6f 63 | get-buf|fer-proc|
|00004030| 65 73 73 20 73 74 72 69 | 6e 67 5d 20 33 5d 29 0a |ess stri|ng] 3]).|
|00004040| 23 40 31 37 30 20 52 65 | 74 75 72 6e 20 74 20 69 |#@170 Re|turn t i|
|00004050| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 6c 69 76 |f there |is a liv|
|00004060| 69 6e 67 20 70 72 6f 63 | 65 73 73 20 61 73 73 6f |ing proc|ess asso|
|00004070| 63 69 61 74 65 64 20 77 | 2f 62 75 66 66 65 72 20 |ciated w|/buffer |
|00004080| 42 55 46 46 45 52 2e 0a | 4c 69 76 69 6e 67 20 6d |BUFFER..|Living m|
|00004090| 65 61 6e 73 20 74 68 65 | 20 73 74 61 74 75 73 20 |eans the| status |
|000040a0| 69 73 20 60 6f 70 65 6e | 27 2c 20 60 72 75 6e 27 |is `open|', `run'|
|000040b0| 2c 20 6f 72 20 60 73 74 | 6f 70 27 2e 0a 42 55 46 |, or `st|op'..BUF|
|000040c0| 46 45 52 20 63 61 6e 20 | 62 65 20 65 69 74 68 65 |FER can |be eithe|
|000040d0| 72 20 61 20 62 75 66 66 | 65 72 20 6f 72 20 74 68 |r a buff|er or th|
|000040e0| 65 20 6e 61 6d 65 20 6f | 66 20 6f 6e 65 2e 1f 0a |e name o|f one...|
|000040f0| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00004100| 74 2d 63 68 65 63 6b 2d | 70 72 6f 63 20 23 5b 28 |t-check-|proc #[(|
|00004110| 62 75 66 66 65 72 29 20 | 22 c0 09 21 89 1a ad 85 |buffer) |"..!....|
|00004120| c3 5c 6e 21 c4 73 29 87 | 22 20 5b 67 65 74 2d 62 |.\n!.s).|" [get-b|
|00004130| 75 66 66 65 72 2d 70 72 | 6f 63 65 73 73 20 62 75 |uffer-pr|ocess bu|
|00004140| 66 66 65 72 20 70 72 6f | 63 20 70 72 6f 63 65 73 |ffer pro|c proces|
|00004150| 73 2d 73 74 61 74 75 73 | 20 28 6f 70 65 6e 20 72 |s-status| (open r|
|00004160| 75 6e 20 73 74 6f 70 29 | 5d 20 33 20 28 23 24 20 |un stop)|] 3 (#$ |
|00004170| 2e 20 31 36 34 35 34 29 | 5d 29 0a 23 40 35 35 39 |. 16454)|]).#@559|
|00004180| 20 4d 61 6b 65 20 61 20 | 63 6f 6d 69 6e 74 20 70 | Make a |comint p|
|00004190| 72 6f 63 65 73 73 20 4e | 41 4d 45 20 69 6e 20 61 |rocess N|AME in a|
|000041a0| 20 62 75 66 66 65 72 2c | 20 72 75 6e 6e 69 6e 67 | buffer,| running|
|000041b0| 20 50 52 4f 47 52 41 4d | 2e 0a 54 68 65 20 6e 61 | PROGRAM|..The na|
|000041c0| 6d 65 20 6f 66 20 74 68 | 65 20 62 75 66 66 65 72 |me of th|e buffer|
|000041d0| 20 69 73 20 6d 61 64 65 | 20 62 79 20 73 75 72 72 | is made| by surr|
|000041e0| 6f 75 6e 64 69 6e 67 20 | 4e 41 4d 45 20 77 69 74 |ounding |NAME wit|
|000041f0| 68 20 60 2a 27 73 2e 0a | 50 52 4f 47 52 41 4d 20 |h `*'s..|PROGRAM |
|00004200| 73 68 6f 75 6c 64 20 62 | 65 20 65 69 74 68 65 72 |should b|e either|
|00004210| 20 61 20 73 74 72 69 6e | 67 20 64 65 6e 6f 74 69 | a strin|g denoti|
|00004220| 6e 67 20 61 6e 20 65 78 | 65 63 75 74 61 62 6c 65 |ng an ex|ecutable|
|00004230| 20 70 72 6f 67 72 61 6d | 20 74 6f 20 63 72 65 61 | program| to crea|
|00004240| 74 65 0a 76 69 61 20 60 | 73 74 61 72 74 2d 70 72 |te.via `|start-pr|
|00004250| 6f 63 65 73 73 27 2c 20 | 6f 72 20 61 20 63 6f 6e |ocess', |or a con|
|00004260| 73 20 70 61 69 72 20 6f | 66 20 74 68 65 20 66 6f |s pair o|f the fo|
|00004270| 72 6d 20 28 48 4f 53 54 | 20 2e 20 53 45 52 56 49 |rm (HOST| . SERVI|
|00004280| 43 45 29 20 64 65 6e 6f | 74 69 6e 67 20 61 20 54 |CE) deno|ting a T|
|00004290| 43 50 0a 63 6f 6e 6e 65 | 63 74 69 6f 6e 20 74 6f |CP.conne|ction to|
|000042a0| 20 62 65 20 6f 70 65 6e | 65 64 20 76 69 61 20 60 | be open|ed via `|
|000042b0| 6f 70 65 6e 2d 6e 65 74 | 77 6f 72 6b 2d 73 74 72 |open-net|work-str|
|000042c0| 65 61 6d 27 2e 20 20 49 | 66 20 74 68 65 72 65 20 |eam'. I|f there |
|000042d0| 69 73 20 61 6c 72 65 61 | 64 79 20 61 0a 72 75 6e |is alrea|dy a.run|
|000042e0| 6e 69 6e 67 20 70 72 6f | 63 65 73 73 20 69 6e 20 |ning pro|cess in |
|000042f0| 74 68 61 74 20 62 75 66 | 66 65 72 2c 20 69 74 20 |that buf|fer, it |
|00004300| 69 73 20 6e 6f 74 20 72 | 65 73 74 61 72 74 65 64 |is not r|estarted|
|00004310| 2e 20 20 4f 70 74 69 6f | 6e 61 6c 20 74 68 69 72 |. Optio|nal thir|
|00004320| 64 20 61 72 67 0a 53 54 | 41 52 54 46 49 4c 45 20 |d arg.ST|ARTFILE |
|00004330| 69 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 61 |is the n|ame of a|
|00004340| 20 66 69 6c 65 20 74 6f | 20 73 65 6e 64 20 74 68 | file to| send th|
|00004350| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 6f |e conten|ts of to|
|00004360| 20 74 68 65 20 70 72 6f | 63 65 73 73 2e 0a 0a 49 | the pro|cess...I|
|00004370| 66 20 50 52 4f 47 52 41 | 4d 20 69 73 20 61 20 73 |f PROGRA|M is a s|
|00004380| 74 72 69 6e 67 2c 20 61 | 6e 79 20 6d 6f 72 65 20 |tring, a|ny more |
|00004390| 61 72 67 73 20 61 72 65 | 20 61 72 67 75 6d 65 6e |args are| argumen|
|000043a0| 74 73 20 74 6f 20 50 52 | 4f 47 52 41 4d 2e 1f 0a |ts to PR|OGRAM...|
|000043b0| 28 64 65 66 61 6c 69 61 | 73 20 27 6d 61 6b 65 2d |(defalia|s 'make-|
|000043c0| 63 6f 6d 69 6e 74 20 23 | 5b 28 6e 61 6d 65 20 70 |comint #|[(name p|
|000043d0| 72 6f 67 72 61 6d 20 26 | 6f 70 74 69 6f 6e 61 6c |rogram &|optional|
|000043e0| 20 73 74 61 72 74 66 69 | 6c 65 20 26 72 65 73 74 | startfi|le &rest|
|000043f0| 20 73 77 69 74 63 68 65 | 73 29 20 22 c0 c1 21 ac | switche|s) "..!.|
|00004400| 84 c2 c3 21 88 c4 c5 0e | 06 c5 51 21 1e 07 c8 0e |...!....|..Q!....|
|00004410| 07 21 ac 96 8a 0e 07 71 | 88 c9 20 88 29 ca 0e 07 |.!.....q|.. .)...|
|00004420| 0e 06 0e 0b 0e 0c 0e 0d | 25 88 0e 07 29 87 22 20 |........|%...)." |
|00004430| 5b 66 62 6f 75 6e 64 70 | 20 73 74 61 72 74 2d 70 |[fboundp| start-p|
|00004440| 72 6f 63 65 73 73 20 65 | 72 72 6f 72 20 22 4d 75 |rocess e|rror "Mu|
|00004450| 6c 74 69 70 6c 65 20 70 | 72 6f 63 65 73 73 65 73 |ltiple p|rocesses|
|00004460| 20 61 72 65 20 6e 6f 74 | 20 73 75 70 70 6f 72 74 | are not| support|
|00004470| 65 64 20 66 6f 72 20 74 | 68 69 73 20 73 79 73 74 |ed for t|his syst|
|00004480| 65 6d 22 20 67 65 74 2d | 62 75 66 66 65 72 2d 63 |em" get-|buffer-c|
|00004490| 72 65 61 74 65 20 22 2a | 22 20 6e 61 6d 65 20 62 |reate "*|" name b|
|000044a0| 75 66 66 65 72 20 63 6f | 6d 69 6e 74 2d 63 68 65 |uffer co|mint-che|
|000044b0| 63 6b 2d 70 72 6f 63 20 | 63 6f 6d 69 6e 74 2d 6d |ck-proc |comint-m|
|000044c0| 6f 64 65 20 63 6f 6d 69 | 6e 74 2d 65 78 65 63 20 |ode comi|nt-exec |
|000044d0| 70 72 6f 67 72 61 6d 20 | 73 74 61 72 74 66 69 6c |program |startfil|
|000044e0| 65 20 73 77 69 74 63 68 | 65 73 5d 20 36 20 28 23 |e switch|es] 6 (#|
|000044f0| 24 20 2e 20 31 36 37 36 | 39 29 5d 29 0a 23 40 32 |$ . 1676|9)]).#@2|
|00004500| 38 35 20 52 75 6e 20 50 | 52 4f 47 52 41 4d 20 69 |85 Run P|ROGRAM i|
|00004510| 6e 20 61 20 63 6f 6d 69 | 6e 74 20 62 75 66 66 65 |n a comi|nt buffe|
|00004520| 72 20 61 6e 64 20 73 77 | 69 74 63 68 20 74 6f 20 |r and sw|itch to |
|00004530| 69 74 2e 0a 54 68 65 20 | 62 75 66 66 65 72 20 6e |it..The |buffer n|
|00004540| 61 6d 65 20 69 73 20 6d | 61 64 65 20 62 79 20 73 |ame is m|ade by s|
|00004550| 75 72 72 6f 75 6e 64 69 | 6e 67 20 74 68 65 20 66 |urroundi|ng the f|
|00004560| 69 6c 65 20 6e 61 6d 65 | 20 6f 66 20 50 52 4f 47 |ile name| of PROG|
|00004570| 52 41 4d 20 77 69 74 68 | 20 60 2a 27 73 2e 0a 54 |RAM with| `*'s..T|
|00004580| 68 65 20 66 69 6c 65 20 | 6e 61 6d 65 20 69 73 20 |he file |name is |
|00004590| 75 73 65 64 20 74 6f 20 | 6d 61 6b 65 20 61 20 73 |used to |make a s|
|000045a0| 79 6d 62 6f 6c 20 6e 61 | 6d 65 2c 20 73 75 63 68 |ymbol na|me, such|
|000045b0| 20 61 73 20 60 63 6f 6d | 69 6e 74 2d 73 68 2d 68 | as `com|int-sh-h|
|000045c0| 6f 6f 6b 27 2c 20 61 6e | 64 20 61 6e 79 0a 68 6f |ook', an|d any.ho|
|000045d0| 6f 6b 73 20 6f 6e 20 74 | 68 69 73 20 73 79 6d 62 |oks on t|his symb|
|000045e0| 6f 6c 20 61 72 65 20 72 | 75 6e 20 69 6e 20 74 68 |ol are r|un in th|
|000045f0| 65 20 62 75 66 66 65 72 | 2e 0a 53 65 65 20 60 6d |e buffer|..See `m|
|00004600| 61 6b 65 2d 63 6f 6d 69 | 6e 74 27 20 61 6e 64 20 |ake-comi|nt' and |
|00004610| 60 63 6f 6d 69 6e 74 2d | 65 78 65 63 27 2e 1f 0a |`comint-|exec'...|
|00004620| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00004630| 74 2d 72 75 6e 20 23 5b | 28 70 72 6f 67 72 61 6d |t-run #[|(program|
|00004640| 29 20 22 c0 09 21 1a c3 | c4 5c 6e 09 5c 22 21 88 |) "..!..|.\n.\"!.|
|00004650| c5 c6 c7 5c 6e c8 51 21 | 21 29 87 22 20 5b 66 69 |...\n.Q!|!)." [fi|
|00004660| 6c 65 2d 6e 61 6d 65 2d | 6e 6f 6e 64 69 72 65 63 |le-name-|nondirec|
|00004670| 74 6f 72 79 20 70 72 6f | 67 72 61 6d 20 6e 61 6d |tory pro|gram nam|
|00004680| 65 20 73 77 69 74 63 68 | 2d 74 6f 2d 62 75 66 66 |e switch|-to-buff|
|00004690| 65 72 20 6d 61 6b 65 2d | 63 6f 6d 69 6e 74 20 72 |er make-|comint r|
|000046a0| 75 6e 2d 68 6f 6f 6b 73 | 20 69 6e 74 65 72 6e 2d |un-hooks| intern-|
|000046b0| 73 6f 66 74 20 22 63 6f | 6d 69 6e 74 2d 22 20 22 |soft "co|mint-" "|
|000046c0| 2d 68 6f 6f 6b 22 5d 20 | 35 20 28 23 24 20 2e 20 |-hook"] |5 (#$ . |
|000046d0| 31 37 36 36 37 29 20 22 | 73 52 75 6e 20 70 72 6f |17667) "|sRun pro|
|000046e0| 67 72 61 6d 3a 20 22 5d | 29 0a 23 40 32 36 35 20 |gram: "]|).#@265 |
|000046f0| 53 74 61 72 74 20 75 70 | 20 61 20 70 72 6f 63 65 |Start up| a proce|
|00004700| 73 73 20 69 6e 20 62 75 | 66 66 65 72 20 42 55 46 |ss in bu|ffer BUF|
|00004710| 46 45 52 20 66 6f 72 20 | 63 6f 6d 69 6e 74 20 6d |FER for |comint m|
|00004720| 6f 64 65 73 2e 0a 42 6c | 61 73 74 73 20 61 6e 79 |odes..Bl|asts any|
|00004730| 20 6f 6c 64 20 70 72 6f | 63 65 73 73 20 72 75 6e | old pro|cess run|
|00004740| 6e 69 6e 67 20 69 6e 20 | 74 68 65 20 62 75 66 66 |ning in |the buff|
|00004750| 65 72 2e 20 20 44 6f 65 | 73 6e 27 74 20 73 65 74 |er. Doe|sn't set|
|00004760| 20 74 68 65 20 62 75 66 | 66 65 72 20 6d 6f 64 65 | the buf|fer mode|
|00004770| 2e 0a 59 6f 75 20 63 61 | 6e 20 75 73 65 20 74 68 |..You ca|n use th|
|00004780| 69 73 20 74 6f 20 63 68 | 65 61 70 6c 79 20 72 75 |is to ch|eaply ru|
|00004790| 6e 20 61 20 73 65 72 69 | 65 73 20 6f 66 20 70 72 |n a seri|es of pr|
|000047a0| 6f 63 65 73 73 65 73 20 | 69 6e 20 74 68 65 20 73 |ocesses |in the s|
|000047b0| 61 6d 65 20 63 6f 6d 69 | 6e 74 0a 62 75 66 66 65 |ame comi|nt.buffe|
|000047c0| 72 2e 20 20 54 68 65 20 | 68 6f 6f 6b 20 60 63 6f |r. The |hook `co|
|000047d0| 6d 69 6e 74 2d 65 78 65 | 63 2d 68 6f 6f 6b 27 20 |mint-exe|c-hook' |
|000047e0| 69 73 20 72 75 6e 20 61 | 66 74 65 72 20 65 61 63 |is run a|fter eac|
|000047f0| 68 20 65 78 65 63 2e 1f | 0a 28 64 65 66 61 6c 69 |h exec..|.(defali|
|00004800| 61 73 20 27 63 6f 6d 69 | 6e 74 2d 65 78 65 63 20 |as 'comi|nt-exec |
|00004810| 23 5b 28 62 75 66 66 65 | 72 20 6e 61 6d 65 20 63 |#[(buffe|r name c|
|00004820| 6f 6d 6d 61 6e 64 20 73 | 74 61 72 74 66 69 6c 65 |ommand s|tartfile|
|00004830| 20 73 77 69 74 63 68 65 | 73 29 20 22 8a 08 71 88 | switche|s) "..q.|
|00004840| c1 08 21 89 1a ab 84 c3 | 5c 6e 21 88 29 0c 3a ab |..!.....|\n!.).:.|
|00004850| 8b c5 0e 06 08 0c 40 0c | 41 24 aa 88 c7 0e 06 08 |......@.|A$......|
|00004860| 0c 0e 08 24 1a c9 5c 6e | ca 5c 22 88 cb cc 21 88 |...$..\n|.\"...!.|
|00004870| 0e 0d 16 0c 64 62 88 ce | 5c 6e 21 60 cf 93 88 0e |....db..|\n!`....|
|00004880| 10 ab 9b d1 d2 21 88 64 | 62 88 d3 0e 10 21 88 60 |.....!.d|b....!.`|
|00004890| 64 7b 16 10 60 64 7c 88 | d4 5c 6e 0e 10 5c 22 88 |d{..`d|.|.\n..\".|
|000048a0| d5 d6 21 88 08 2a 87 22 | 20 5b 62 75 66 66 65 72 |..!..*."| [buffer|
|000048b0| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 70 72 6f 63 | get-buf|fer-proc|
|000048c0| 65 73 73 20 70 72 6f 63 | 20 64 65 6c 65 74 65 2d |ess proc| delete-|
|000048d0| 70 72 6f 63 65 73 73 20 | 63 6f 6d 6d 61 6e 64 20 |process |command |
|000048e0| 6f 70 65 6e 2d 6e 65 74 | 77 6f 72 6b 2d 73 74 72 |open-net|work-str|
|000048f0| 65 61 6d 20 6e 61 6d 65 | 20 63 6f 6d 69 6e 74 2d |eam name| comint-|
|00004900| 65 78 65 63 2d 31 20 73 | 77 69 74 63 68 65 73 20 |exec-1 s|witches |
|00004910| 73 65 74 2d 70 72 6f 63 | 65 73 73 2d 66 69 6c 74 |set-proc|ess-filt|
|00004920| 65 72 20 63 6f 6d 69 6e | 74 2d 6f 75 74 70 75 74 |er comin|t-output|
|00004930| 2d 66 69 6c 74 65 72 20 | 6d 61 6b 65 2d 6c 6f 63 |-filter |make-loc|
|00004940| 61 6c 2d 76 61 72 69 61 | 62 6c 65 20 63 6f 6d 69 |al-varia|ble comi|
|00004950| 6e 74 2d 70 74 79 70 20 | 70 72 6f 63 65 73 73 2d |nt-ptyp |process-|
|00004960| 63 6f 6e 6e 65 63 74 69 | 6f 6e 2d 74 79 70 65 20 |connecti|on-type |
|00004970| 70 72 6f 63 65 73 73 2d | 6d 61 72 6b 20 6e 69 6c |process-|mark nil|
|00004980| 20 73 74 61 72 74 66 69 | 6c 65 20 73 6c 65 65 70 | startfi|le sleep|
|00004990| 2d 66 6f 72 20 31 20 69 | 6e 73 65 72 74 2d 66 69 |-for 1 i|nsert-fi|
|000049a0| 6c 65 2d 63 6f 6e 74 65 | 6e 74 73 20 63 6f 6d 69 |le-conte|nts comi|
|000049b0| 6e 74 2d 73 65 6e 64 2d | 73 74 72 69 6e 67 20 72 |nt-send-|string r|
|000049c0| 75 6e 2d 68 6f 6f 6b 73 | 20 63 6f 6d 69 6e 74 2d |un-hooks| comint-|
|000049d0| 65 78 65 63 2d 68 6f 6f | 6b 5d 20 36 20 28 23 24 |exec-hoo|k] 6 (#$|
|000049e0| 20 2e 20 31 38 31 36 30 | 29 5d 29 0a 28 64 65 66 | . 18160|)]).(def|
|000049f0| 61 6c 69 61 73 20 27 63 | 6f 6d 69 6e 74 2d 65 78 |alias 'c|omint-ex|
|00004a00| 65 63 2d 31 20 23 5b 28 | 6e 61 6d 65 20 62 75 66 |ec-1 #[(|name buf|
|00004a10| 66 65 72 20 63 6f 6d 6d | 61 6e 64 20 73 77 69 74 |fer comm|and swit|
|00004a20| 63 68 65 73 29 20 22 c0 | c1 21 ab 8c 09 ab 89 c2 |ches) ".|.!......|
|00004a30| c3 c4 c5 20 5c 22 44 aa | 87 c6 c3 c7 c5 20 5c 22 |... \"D.|..... \"|
|00004a40| 44 c8 c9 21 3f ad 82 ca | 43 a4 0e 0b a4 cc 0e 0d |D..!?...|C.......|
|00004a50| 21 ab 84 0e 0d aa 81 ce | 1e 0d 1e 0b cf d0 0e 11 |!.......|........|
|00004a60| 0e 12 0e 13 0e 14 25 2a | 87 22 20 5b 62 6f 75 6e |......%*|." [boun|
|00004a70| 64 70 20 73 79 73 74 65 | 6d 2d 75 73 65 73 2d 74 |dp syste|m-uses-t|
|00004a80| 65 72 6d 69 6e 66 6f 20 | 22 54 45 52 4d 3d 75 6e |erminfo |"TERM=un|
|00004a90| 6b 6e 6f 77 6e 22 20 66 | 6f 72 6d 61 74 20 22 43 |known" f|ormat "C|
|00004aa0| 4f 4c 55 4d 4e 53 3d 25 | 64 22 20 66 72 61 6d 65 |OLUMNS=%|d" frame|
|00004ab0| 2d 77 69 64 74 68 20 22 | 54 45 52 4d 3d 65 6d 61 |-width "|TERM=ema|
|00004ac0| 63 73 22 20 22 54 45 52 | 4d 43 41 50 3d 65 6d 61 |cs" "TER|MCAP=ema|
|00004ad0| 63 73 3a 63 6f 23 25 64 | 3a 74 63 3d 75 6e 6b 6e |cs:co#%d|:tc=unkn|
|00004ae0| 6f 77 6e 3a 22 20 67 65 | 74 65 6e 76 20 22 45 4d |own:" ge|tenv "EM|
|00004af0| 41 43 53 22 20 22 45 4d | 41 43 53 3d 74 22 20 70 |ACS" "EM|ACS=t" p|
|00004b00| 72 6f 63 65 73 73 2d 65 | 6e 76 69 72 6f 6e 6d 65 |rocess-e|nvironme|
|00004b10| 6e 74 20 66 69 6c 65 2d | 64 69 72 65 63 74 6f 72 |nt file-|director|
|00004b20| 79 2d 70 20 64 65 66 61 | 75 6c 74 2d 64 69 72 65 |y-p defa|ult-dire|
|00004b30| 63 74 6f 72 79 20 22 2f | 22 20 61 70 70 6c 79 20 |ctory "/|" apply |
|00004b40| 73 74 61 72 74 2d 70 72 | 6f 63 65 73 73 20 6e 61 |start-pr|ocess na|
|00004b50| 6d 65 20 62 75 66 66 65 | 72 20 63 6f 6d 6d 61 6e |me buffe|r comman|
|00004b60| 64 20 73 77 69 74 63 68 | 65 73 5d 20 36 5d 29 0a |d switch|es] 6]).|
|00004b70| 23 40 36 32 35 20 53 65 | 74 73 20 74 68 65 20 62 |#@625 Se|ts the b|
|00004b80| 75 66 66 65 72 27 73 20 | 60 63 6f 6d 69 6e 74 2d |uffer's |`comint-|
|00004b90| 69 6e 70 75 74 2d 72 69 | 6e 67 27 20 66 72 6f 6d |input-ri|ng' from|
|00004ba0| 20 61 20 68 69 73 74 6f | 72 79 20 66 69 6c 65 2e | a histo|ry file.|
|00004bb0| 0a 54 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |.The nam|e of the|
|00004bc0| 20 66 69 6c 65 20 69 73 | 20 67 69 76 65 6e 20 62 | file is| given b|
|00004bd0| 79 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 60 |y the va|riable `|
|00004be0| 63 6f 6d 69 6e 74 2d 69 | 6e 70 75 74 2d 72 69 6e |comint-i|nput-rin|
|00004bf0| 67 2d 66 69 6c 65 2d 6e | 61 6d 65 27 2e 0a 54 68 |g-file-n|ame'..Th|
|00004c00| 65 20 68 69 73 74 6f 72 | 79 20 72 69 6e 67 20 69 |e histor|y ring i|
|00004c10| 73 20 6f 66 20 73 69 7a | 65 20 60 63 6f 6d 69 6e |s of siz|e `comin|
|00004c20| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 73 69 7a |t-input-|ring-siz|
|00004c30| 65 27 2c 20 72 65 67 61 | 72 64 6c 65 73 73 20 6f |e', rega|rdless o|
|00004c40| 66 20 66 69 6c 65 20 73 | 69 7a 65 2e 0a 49 66 20 |f file s|ize..If |
|00004c50| 60 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 |`comint-|input-ri|
|00004c60| 6e 67 2d 66 69 6c 65 2d | 6e 61 6d 65 27 20 69 73 |ng-file-|name' is|
|00004c70| 20 6e 69 6c 20 74 68 69 | 73 20 66 75 6e 63 74 69 | nil thi|s functi|
|00004c80| 6f 6e 20 64 6f 65 73 20 | 6e 6f 74 68 69 6e 67 2e |on does |nothing.|
|00004c90| 0a 0a 49 66 20 74 68 65 | 20 6f 70 74 69 6f 6e 61 |..If the| optiona|
|00004ca0| 6c 20 61 72 67 75 6d 65 | 6e 74 20 53 49 4c 45 4e |l argume|nt SILEN|
|00004cb0| 54 20 69 73 20 6e 6f 6e | 2d 6e 69 6c 2c 20 77 65 |T is non|-nil, we|
|00004cc0| 20 73 61 79 20 6e 6f 74 | 68 69 6e 67 20 61 62 6f | say not|hing abo|
|00004cd0| 75 74 20 61 0a 66 61 69 | 6c 75 72 65 20 74 6f 20 |ut a.fai|lure to |
|00004ce0| 72 65 61 64 20 74 68 65 | 20 68 69 73 74 6f 72 79 |read the| history|
|00004cf0| 20 66 69 6c 65 2e 0a 0a | 54 68 69 73 20 66 75 6e | file...|This fun|
|00004d00| 63 74 69 6f 6e 20 69 73 | 20 75 73 65 66 75 6c 20 |ction is| useful |
|00004d10| 66 6f 72 20 6d 61 6a 6f | 72 20 6d 6f 64 65 20 63 |for majo|r mode c|
|00004d20| 6f 6d 6d 61 6e 64 73 20 | 61 6e 64 20 6d 6f 64 65 |ommands |and mode|
|00004d30| 20 68 6f 6f 6b 73 2e 0a | 0a 54 68 65 20 73 74 72 | hooks..|.The str|
|00004d40| 75 63 74 75 72 65 20 6f | 66 20 74 68 65 20 68 69 |ucture o|f the hi|
|00004d50| 73 74 6f 72 79 20 66 69 | 6c 65 20 73 68 6f 75 6c |story fi|le shoul|
|00004d60| 64 20 62 65 20 6f 6e 65 | 20 69 6e 70 75 74 20 63 |d be one| input c|
|00004d70| 6f 6d 6d 61 6e 64 20 70 | 65 72 20 6c 69 6e 65 2c |ommand p|er line,|
|00004d80| 0a 77 69 74 68 20 74 68 | 65 20 6d 6f 73 74 20 72 |.with th|e most r|
|00004d90| 65 63 65 6e 74 20 63 6f | 6d 6d 61 6e 64 20 6c 61 |ecent co|mmand la|
|00004da0| 73 74 2e 0a 53 65 65 20 | 61 6c 73 6f 20 60 63 6f |st..See |also `co|
|00004db0| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 69 67 6e 6f 72 |mint-inp|ut-ignor|
|00004dc0| 65 64 75 70 73 27 20 61 | 6e 64 20 60 63 6f 6d 69 |edups' a|nd `comi|
|00004dd0| 6e 74 2d 77 72 69 74 65 | 2d 69 6e 70 75 74 2d 72 |nt-write|-input-r|
|00004de0| 69 6e 67 27 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |ing'...(|defalias|
|00004df0| 20 27 63 6f 6d 69 6e 74 | 2d 72 65 61 64 2d 69 6e | 'comint|-read-in|
|00004e00| 70 75 74 2d 72 69 6e 67 | 20 23 5b 28 26 6f 70 74 |put-ring| #[(&opt|
|00004e10| 69 6f 6e 61 6c 20 73 69 | 6c 65 6e 74 29 20 22 08 |ional si|lent) ".|
|00004e20| ab 85 08 c1 6b ab 82 c2 | 87 c3 08 21 ac 88 0c ae |....k...|...!....|
|00004e30| ed c5 c6 08 5c 22 87 c7 | c8 21 08 c9 ca 0e 0b 21 |....\"..|.!.....!|
|00004e40| 1e 0c 1e 0d 1e 0e 1e 0f | d0 8e 8a 0e 0f 71 88 7e |........|.....q.~|
|00004e50| 88 d1 20 88 d2 0e 0e 21 | 88 64 62 88 0e 0d 0e 0b |.. ....!|.db.....|
|00004e60| 57 ab b2 d3 d4 c2 d5 23 | ab ab d6 94 d6 95 7b 1e |W......#|......{.|
|00004e70| 17 0e 18 ab 90 d9 0e 0c | 21 ac 8a da 0e 0c c9 5c |........|!......\|
|00004e80| 22 0e 17 98 ac 87 db 0e | 0c 0e 17 5c 22 88 29 0e |".......|...\".).|
|00004e90| 0d 54 89 16 0d aa 49 2a | 0e 0c 16 1c c2 89 16 1d |.T....I*|........|
|00004ea0| 2c 87 22 20 5b 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |,." [com|int-inpu|
|00004eb0| 74 2d 72 69 6e 67 2d 66 | 69 6c 65 2d 6e 61 6d 65 |t-ring-f|ile-name|
|00004ec0| 20 22 22 20 6e 69 6c 20 | 66 69 6c 65 2d 72 65 61 | "" nil |file-rea|
|00004ed0| 64 61 62 6c 65 2d 70 20 | 73 69 6c 65 6e 74 20 6d |dable-p |silent m|
|00004ee0| 65 73 73 61 67 65 20 22 | 43 61 6e 6e 6f 74 20 72 |essage "|Cannot r|
|00004ef0| 65 61 64 20 68 69 73 74 | 6f 72 79 20 66 69 6c 65 |ead hist|ory file|
|00004f00| 20 25 73 22 20 67 65 74 | 2d 62 75 66 66 65 72 2d | %s" get|-buffer-|
|00004f10| 63 72 65 61 74 65 20 22 | 20 2a 63 6f 6d 69 6e 74 |create "| *comint|
|00004f20| 2d 68 69 73 74 6f 72 79 | 2a 22 20 30 20 6d 61 6b |-history|*" 0 mak|
|00004f30| 65 2d 72 69 6e 67 20 63 | 6f 6d 69 6e 74 2d 69 6e |e-ring c|omint-in|
|00004f40| 70 75 74 2d 72 69 6e 67 | 2d 73 69 7a 65 20 72 69 |put-ring|-size ri|
|00004f50| 6e 67 20 63 6f 75 6e 74 | 20 66 69 6c 65 20 68 69 |ng count| file hi|
|00004f60| 73 74 6f 72 79 2d 62 75 | 66 20 28 28 6b 69 6c 6c |story-bu|f ((kill|
|00004f70| 2d 62 75 66 66 65 72 20 | 68 69 73 74 6f 72 79 2d |-buffer |history-|
|00004f80| 62 75 66 29 29 20 65 72 | 61 73 65 2d 62 75 66 66 |buf)) er|ase-buff|
|00004f90| 65 72 20 69 6e 73 65 72 | 74 2d 66 69 6c 65 2d 63 |er inser|t-file-c|
|00004fa0| 6f 6e 74 65 6e 74 73 20 | 72 65 2d 73 65 61 72 63 |ontents |re-searc|
|00004fb0| 68 2d 62 61 63 6b 77 61 | 72 64 20 22 5e 5b 20 09 |h-backwa|rd "^[ .|
|00004fc0| 5d 2a 5c 5c 28 5b 5e 23 | 5c 6e 5d 2e 2a 5c 5c 29 |]*\\([^#|\n].*\\)|
|00004fd0| 5b 20 09 5d 2a 24 22 20 | 74 20 31 20 68 69 73 74 |[ .]*$" |t 1 hist|
|00004fe0| 6f 72 79 20 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |ory comi|nt-input|
|00004ff0| 2d 69 67 6e 6f 72 65 64 | 75 70 73 20 72 69 6e 67 |-ignored|ups ring|
|00005000| 2d 65 6d 70 74 79 2d 70 | 20 72 69 6e 67 2d 72 65 |-empty-p| ring-re|
|00005010| 66 20 72 69 6e 67 2d 69 | 6e 73 65 72 74 2d 61 74 |f ring-i|nsert-at|
|00005020| 2d 62 65 67 69 6e 6e 69 | 6e 67 20 63 6f 6d 69 6e |-beginni|ng comin|
|00005030| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 20 63 6f 6d |t-input-|ring com|
|00005040| 69 6e 74 2d 69 6e 70 75 | 74 2d 72 69 6e 67 2d 69 |int-inpu|t-ring-i|
|00005050| 6e 64 65 78 5d 20 36 20 | 28 23 24 20 2e 20 31 39 |ndex] 6 |(#$ . 19|
|00005060| 33 31 38 29 5d 29 0a 23 | 40 33 35 35 20 57 72 69 |318)]).#|@355 Wri|
|00005070| 74 65 73 20 74 68 65 20 | 62 75 66 66 65 72 27 73 |tes the |buffer's|
|00005080| 20 60 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 | `comint|-input-r|
|00005090| 69 6e 67 27 20 74 6f 20 | 61 20 68 69 73 74 6f 72 |ing' to |a histor|
|000050a0| 79 20 66 69 6c 65 2e 0a | 54 68 65 20 6e 61 6d 65 |y file..|The name|
|000050b0| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 | of the |file is |
|000050c0| 67 69 76 65 6e 20 62 79 | 20 74 68 65 20 76 61 72 |given by| the var|
|000050d0| 69 61 62 6c 65 20 60 63 | 6f 6d 69 6e 74 2d 69 6e |iable `c|omint-in|
|000050e0| 70 75 74 2d 72 69 6e 67 | 2d 66 69 6c 65 2d 6e 61 |put-ring|-file-na|
|000050f0| 6d 65 27 2e 0a 54 68 65 | 20 6f 72 69 67 69 6e 61 |me'..The| origina|
|00005100| 6c 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |l conten|ts of th|
|00005110| 65 20 66 69 6c 65 20 61 | 72 65 20 6c 6f 73 74 20 |e file a|re lost |
|00005120| 69 66 20 60 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |if `comi|nt-input|
|00005130| 2d 72 69 6e 67 27 20 69 | 73 20 6e 6f 74 20 65 6d |-ring' i|s not em|
|00005140| 70 74 79 2e 0a 49 66 20 | 60 63 6f 6d 69 6e 74 2d |pty..If |`comint-|
|00005150| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 66 69 6c 65 2d |input-ri|ng-file-|
|00005160| 6e 61 6d 65 27 20 69 73 | 20 6e 69 6c 20 74 68 69 |name' is| nil thi|
|00005170| 73 20 66 75 6e 63 74 69 | 6f 6e 20 64 6f 65 73 20 |s functi|on does |
|00005180| 6e 6f 74 68 69 6e 67 2e | 0a 0a 55 73 65 66 75 6c |nothing.|..Useful|
|00005190| 20 77 69 74 68 69 6e 20 | 70 72 6f 63 65 73 73 20 | within |process |
|000051a0| 73 65 6e 74 69 6e 65 6c | 73 2e 0a 0a 53 65 65 20 |sentinel|s...See |
|000051b0| 61 6c 73 6f 20 60 63 6f | 6d 69 6e 74 2d 72 65 61 |also `co|mint-rea|
|000051c0| 64 2d 69 6e 70 75 74 2d | 72 69 6e 67 27 2e 1f 0a |d-input-|ring'...|
|000051d0| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|000051e0| 74 2d 77 72 69 74 65 2d | 69 6e 70 75 74 2d 72 69 |t-write-|input-ri|
|000051f0| 6e 67 20 23 5b 6e 69 6c | 20 22 08 ab 8d 08 c1 6b |ng #[nil| ".....k|
|00005200| ac 88 5c 6e ab 85 c3 5c | 6e 21 ab 82 c4 87 c5 08 |..\n...\|n!......|
|00005210| 21 ac 85 c6 c7 08 5c 22 | 87 c8 c9 21 1e 5c 6e 5c |!.....\"|...!.\n\|
|00005220| 6e 1e 0b 08 1e 0c cd 0e | 0b 21 1e 0e 8a 0e 5c 6e |n.......|.!....\n|
|00005230| 71 88 cf 20 88 0e 0e d0 | 56 ab 91 0e 0e 53 16 0e |q.. ....|V....S..|
|00005240| d1 0e 0b 0e 0e 5c 22 d2 | b1 02 88 aa 69 d3 d4 20 |.....\".|....i.. |
|00005250| c4 0e 0c c4 d5 25 88 d6 | c4 21 2d 87 22 20 5b 63 |.....%..|.!-." [c|
|00005260| 6f 6d 69 6e 74 2d 69 6e | 70 75 74 2d 72 69 6e 67 |omint-in|put-ring|
|00005270| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 22 22 20 63 6f |-file-na|me "" co|
|00005280| 6d 69 6e 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 20 |mint-inp|ut-ring |
|00005290| 72 69 6e 67 2d 65 6d 70 | 74 79 2d 70 20 6e 69 6c |ring-emp|ty-p nil|
|000052a0| 20 66 69 6c 65 2d 77 72 | 69 74 61 62 6c 65 2d 70 | file-wr|itable-p|
|000052b0| 20 6d 65 73 73 61 67 65 | 20 22 43 61 6e 6e 6f 74 | message| "Cannot|
|000052c0| 20 77 72 69 74 65 20 68 | 69 73 74 6f 72 79 20 66 | write h|istory f|
|000052d0| 69 6c 65 20 25 73 22 20 | 67 65 74 2d 62 75 66 66 |ile %s" |get-buff|
|000052e0| 65 72 2d 63 72 65 61 74 | 65 20 22 20 2a 54 65 6d |er-creat|e " *Tem|
|000052f0| 70 20 49 6e 70 75 74 20 | 48 69 73 74 6f 72 79 2a |p Input |History*|
|00005300| 22 20 68 69 73 74 6f 72 | 79 2d 62 75 66 20 72 69 |" histor|y-buf ri|
|00005310| 6e 67 20 66 69 6c 65 20 | 72 69 6e 67 2d 6c 65 6e |ng file |ring-len|
|00005320| 67 74 68 20 69 6e 64 65 | 78 20 65 72 61 73 65 2d |gth inde|x erase-|
|00005330| 62 75 66 66 65 72 20 30 | 20 72 69 6e 67 2d 72 65 |buffer 0| ring-re|
|00005340| 66 20 3f 5c 6e 20 77 72 | 69 74 65 2d 72 65 67 69 |f ?\n wr|ite-regi|
|00005350| 6f 6e 20 62 75 66 66 65 | 72 2d 73 74 72 69 6e 67 |on buffe|r-string|
|00005360| 20 6e 6f 2d 6d 65 73 73 | 61 67 65 20 6b 69 6c 6c | no-mess|age kill|
|00005370| 2d 62 75 66 66 65 72 5d | 20 36 20 28 23 24 20 2e |-buffer]| 6 (#$ .|
|00005380| 20 32 30 35 38 39 29 5d | 29 0a 28 64 65 66 61 6c | 20589)]|).(defal|
|00005390| 69 61 73 20 27 63 6f 6d | 69 6e 74 2d 72 65 73 74 |ias 'com|int-rest|
|000053a0| 6f 72 65 2d 77 69 6e 64 | 6f 77 2d 63 6f 6e 66 69 |ore-wind|ow-confi|
|000053b0| 67 20 23 5b 28 63 6f 6e | 66 20 26 6f 70 74 69 6f |g #[(con|f &optio|
|000053c0| 6e 61 6c 20 6d 65 73 73 | 61 67 65 29 20 22 c0 20 |nal mess|age) ". |
|000053d0| c1 20 61 ac 88 c2 c3 5c | 6e ae 81 c4 5c 22 88 c5 |. a....\|n...\"..|
|000053e0| c6 21 88 c7 c8 21 ab 97 | c8 20 1e 09 ca 0e 09 21 |.!...!..|. .....!|
|000053f0| cb 61 ab 83 cc aa 85 0e | 09 16 0d ce 29 aa 93 cf |.a......|....)...|
|00005400| 20 89 1e 09 cb 61 ab 83 | cc aa 86 0e 09 43 16 10 | ....a..|.....C..|
|00005410| ce 29 ad 84 d1 0e 12 21 | 87 22 20 5b 73 65 6c 65 |.).....!|." [sele|
|00005420| 63 74 65 64 2d 77 69 6e | 64 6f 77 20 6d 69 6e 69 |cted-win|dow mini|
|00005430| 62 75 66 66 65 72 2d 77 | 69 6e 64 6f 77 20 6d 65 |buffer-w|indow me|
|00005440| 73 73 61 67 65 20 22 25 | 73 22 20 22 50 72 65 73 |ssage "%|s" "Pres|
|00005450| 73 20 73 70 61 63 65 20 | 74 6f 20 66 6c 75 73 68 |s space |to flush|
|00005460| 22 20 73 69 74 2d 66 6f | 72 20 30 20 66 62 6f 75 |" sit-fo|r 0 fbou|
|00005470| 6e 64 70 20 6e 65 78 74 | 2d 63 6f 6d 6d 61 6e 64 |ndp next|-command|
|00005480| 2d 65 76 65 6e 74 20 63 | 68 20 65 76 65 6e 74 2d |-event c|h event-|
|00005490| 74 6f 2d 63 68 61 72 61 | 63 74 65 72 20 3f 5c 20 |to-chara|cter ?\ |
|000054a0| 20 74 20 75 6e 72 65 61 | 64 2d 63 6f 6d 6d 61 6e | t unrea|d-comman|
|000054b0| 64 2d 65 76 65 6e 74 20 | 6e 69 6c 20 72 65 61 64 |d-event |nil read|
|000054c0| 2d 65 76 65 6e 74 20 75 | 6e 72 65 61 64 2d 63 6f |-event u|nread-co|
|000054d0| 6d 6d 61 6e 64 2d 65 76 | 65 6e 74 73 20 73 65 74 |mmand-ev|ents set|
|000054e0| 2d 77 69 6e 64 6f 77 2d | 63 6f 6e 66 69 67 75 72 |-window-|configur|
|000054f0| 61 74 69 6f 6e 20 63 6f | 6e 66 5d 20 34 5d 29 0a |ation co|nf] 4]).|
|00005500| 23 40 34 39 20 4c 69 73 | 74 20 69 6e 20 68 65 6c |#@49 Lis|t in hel|
|00005510| 70 20 62 75 66 66 65 72 | 20 74 68 65 20 62 75 66 |p buffer| the buf|
|00005520| 66 65 72 27 73 20 69 6e | 70 75 74 20 68 69 73 74 |fer's in|put hist|
|00005530| 6f 72 79 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ory...(d|efalias |
|00005540| 27 63 6f 6d 69 6e 74 2d | 64 79 6e 61 6d 69 63 2d |'comint-|dynamic-|
|00005550| 6c 69 73 74 2d 69 6e 70 | 75 74 2d 72 69 6e 67 20 |list-inp|ut-ring |
|00005560| 23 5b 6e 69 6c 20 22 c0 | 09 21 ab 85 c2 09 21 ab |#[nil ".|.!....!.|
|00005570| 84 c3 c4 21 87 c5 c6 c7 | 09 21 53 c8 20 1e 09 1e |...!....|.!S. ...|
|00005580| 5c 6e 1e 0b 1e 0c 0e 5c | 6e cd 59 ab 92 ce 09 0e |\n.....\|n.Y.....|
|00005590| 5c 6e 5c 22 0e 0c 42 16 | 0c 0e 5c 6e 53 89 16 5c |\n\"..B.|..\nS..\|
|000055a0| 6e aa 6a 0e 0b 90 cf 0e | 0c 21 88 0e 0b 71 88 d0 |n.j.....|.!...q..|
|000055b0| 79 88 c5 1e 11 d2 d3 c5 | d4 23 ad 86 d5 d6 21 88 |y.......|.#....!.|
|000055c0| aa 73 29 91 88 d7 0e 09 | 21 2c 87 22 20 5b 72 69 |.s).....|!,." [ri|
|000055d0| 6e 67 70 20 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |ngp comi|nt-input|
|000055e0| 2d 72 69 6e 67 20 72 69 | 6e 67 2d 65 6d 70 74 79 |-ring ri|ng-empty|
|000055f0| 2d 70 20 6d 65 73 73 61 | 67 65 20 22 4e 6f 20 68 |-p messa|ge "No h|
|00005600| 69 73 74 6f 72 79 22 20 | 6e 69 6c 20 22 20 2a 49 |istory" |nil " *I|
|00005610| 6e 70 75 74 20 48 69 73 | 74 6f 72 79 2a 22 20 72 |nput His|tory*" r|
|00005620| 69 6e 67 2d 6c 65 6e 67 | 74 68 20 63 75 72 72 65 |ing-leng|th curre|
|00005630| 6e 74 2d 77 69 6e 64 6f | 77 2d 63 6f 6e 66 69 67 |nt-windo|w-config|
|00005640| 75 72 61 74 69 6f 6e 20 | 63 6f 6e 66 20 69 6e 64 |uration |conf ind|
|00005650| 65 78 20 68 69 73 74 6f | 72 79 2d 62 75 66 66 65 |ex histo|ry-buffe|
|00005660| 72 20 68 69 73 74 6f 72 | 79 20 30 20 72 69 6e 67 |r histor|y 0 ring|
|00005670| 2d 72 65 66 20 64 69 73 | 70 6c 61 79 2d 63 6f 6d |-ref dis|play-com|
|00005680| 70 6c 65 74 69 6f 6e 2d | 6c 69 73 74 20 33 20 62 |pletion-|list 3 b|
|00005690| 75 66 66 65 72 2d 72 65 | 61 64 2d 6f 6e 6c 79 20 |uffer-re|ad-only |
|000056a0| 73 65 61 72 63 68 2d 62 | 61 63 6b 77 61 72 64 20 |search-b|ackward |
|000056b0| 22 63 6f 6d 70 6c 65 74 | 69 6f 6e 22 20 6d 6f 76 |"complet|ion" mov|
|000056c0| 65 20 72 65 70 6c 61 63 | 65 2d 6d 61 74 63 68 20 |e replac|e-match |
|000056d0| 22 68 69 73 74 6f 72 79 | 20 72 65 66 65 72 65 6e |"history| referen|
|000056e0| 63 65 22 20 63 6f 6d 69 | 6e 74 2d 72 65 73 74 6f |ce" comi|nt-resto|
|000056f0| 72 65 2d 77 69 6e 64 6f | 77 2d 63 6f 6e 66 69 67 |re-windo|w-config|
|00005700| 5d 20 36 20 28 23 24 20 | 2e 20 32 31 37 36 35 29 |] 6 (#$ |. 21765)|
|00005710| 20 6e 69 6c 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 | nil]).(|defalias|
|00005720| 20 27 63 6f 6d 69 6e 74 | 2d 72 65 67 65 78 70 2d | 'comint|-regexp-|
|00005730| 61 72 67 20 23 5b 28 70 | 72 6f 6d 70 74 29 20 22 |arg #[(p|rompt) "|
|00005740| c0 19 5c 6e 1a c3 0c c0 | 89 89 c5 25 89 1e 06 c7 |..\n....|...%....|
|00005750| 98 ab 87 0d 89 41 40 a0 | aa 82 0e 06 c8 0e 09 21 |.....A@.|.......!|
|00005760| 2b 44 87 22 20 5b 6e 69 | 6c 20 6d 69 6e 69 62 75 |+D." [ni|l minibu|
|00005770| 66 66 65 72 2d 68 69 73 | 74 6f 72 79 2d 73 65 78 |ffer-his|tory-sex|
|00005780| 70 2d 66 6c 61 67 20 6c | 61 73 74 2d 63 6f 6d 6d |p-flag l|ast-comm|
|00005790| 61 6e 64 20 72 65 61 64 | 2d 66 72 6f 6d 2d 6d 69 |and read|-from-mi|
|000057a0| 6e 69 62 75 66 66 65 72 | 20 70 72 6f 6d 70 74 20 |nibuffer| prompt |
|000057b0| 6d 69 6e 69 62 75 66 66 | 65 72 2d 68 69 73 74 6f |minibuff|er-histo|
|000057c0| 72 79 2d 73 65 61 72 63 | 68 2d 68 69 73 74 6f 72 |ry-searc|h-histor|
|000057d0| 79 20 72 65 67 65 78 70 | 20 22 22 20 70 72 65 66 |y regexp| "" pref|
|000057e0| 69 78 2d 6e 75 6d 65 72 | 69 63 2d 76 61 6c 75 65 |ix-numer|ic-value|
|000057f0| 20 63 75 72 72 65 6e 74 | 2d 70 72 65 66 69 78 2d | current|-prefix-|
|00005800| 61 72 67 5d 20 37 5d 29 | 0a 28 64 65 66 61 6c 69 |arg] 7])|.(defali|
|00005810| 61 73 20 27 63 6f 6d 69 | 6e 74 2d 73 65 61 72 63 |as 'comi|nt-searc|
|00005820| 68 2d 61 72 67 20 23 5b | 28 61 72 67 29 20 22 c0 |h-arg #[|(arg) ".|
|00005830| 20 ac 84 c1 c2 21 87 0b | ab 85 c4 0b 21 ab 84 c1 | ....!..|....!...|
|00005840| c5 21 87 0e 06 c7 55 ab | 85 c8 16 09 ca 87 0e 06 |.!....U.|........|
|00005850| 87 22 20 5b 63 6f 6d 69 | 6e 74 2d 61 66 74 65 72 |." [comi|nt-after|
|00005860| 2d 70 6d 61 72 6b 2d 70 | 20 65 72 72 6f 72 20 22 |-pmark-p| error "|
|00005870| 4e 6f 74 20 61 74 20 63 | 6f 6d 6d 61 6e 64 20 6c |Not at c|ommand l|
|00005880| 69 6e 65 22 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |ine" com|int-inpu|
|00005890| 74 2d 72 69 6e 67 20 72 | 69 6e 67 2d 65 6d 70 74 |t-ring r|ing-empt|
|000058a0| 79 2d 70 20 22 45 6d 70 | 74 79 20 69 6e 70 75 74 |y-p "Emp|ty input|
|000058b0| 20 72 69 6e 67 22 20 61 | 72 67 20 30 20 6e 69 6c | ring" a|rg 0 nil|
|000058c0| 20 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 | comint-|input-ri|
|000058d0| 6e 67 2d 69 6e 64 65 78 | 20 31 5d 20 32 5d 29 0a |ng-index| 1] 2]).|
|000058e0| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|000058f0| 74 2d 73 65 61 72 63 68 | 2d 73 74 61 72 74 20 23 |t-search|-start #|
|00005900| 5b 28 61 72 67 29 20 22 | 08 ab 92 c1 08 5c 6e c3 |[(arg) "|.....\n.|
|00005910| 56 ab 83 c4 aa 81 c5 5c | 5c c6 0e 07 21 5c 22 87 |V......\|\...!\".|
|00005920| 5c 6e c3 59 ab 82 c3 87 | c6 0e 07 21 53 87 22 20 |\n.Y....|...!S." |
|00005930| 5b 63 6f 6d 69 6e 74 2d | 69 6e 70 75 74 2d 72 69 |[comint-|input-ri|
|00005940| 6e 67 2d 69 6e 64 65 78 | 20 6d 6f 64 20 61 72 67 |ng-index| mod arg|
|00005950| 20 30 20 31 20 2d 31 20 | 72 69 6e 67 2d 6c 65 6e | 0 1 -1 |ring-len|
|00005960| 67 74 68 20 63 6f 6d 69 | 6e 74 2d 69 6e 70 75 74 |gth comi|nt-input|
|00005970| 2d 72 69 6e 67 5d 20 34 | 5d 29 0a 23 40 39 37 20 |-ring] 4|]).#@97 |
|00005980| 52 65 74 75 72 6e 20 74 | 68 65 20 73 74 72 69 6e |Return t|he strin|
|00005990| 67 20 41 52 47 20 70 6c | 61 63 65 73 20 61 6c 6f |g ARG pl|aces alo|
|000059a0| 6e 67 20 74 68 65 20 69 | 6e 70 75 74 20 72 69 6e |ng the i|nput rin|
|000059b0| 67 2e 0a 4d 6f 76 65 73 | 20 72 65 6c 61 74 69 76 |g..Moves| relativ|
|000059c0| 65 20 74 6f 20 60 63 6f | 6d 69 6e 74 2d 69 6e 70 |e to `co|mint-inp|
|000059d0| 75 74 2d 72 69 6e 67 2d | 69 6e 64 65 78 27 2e 1f |ut-ring-|index'..|
|000059e0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 6d 69 |.(defali|as 'comi|
|000059f0| 6e 74 2d 70 72 65 76 69 | 6f 75 73 2d 69 6e 70 75 |nt-previ|ous-inpu|
|00005a00| 74 2d 73 74 72 69 6e 67 | 20 23 5b 28 61 72 67 29 |t-string| #[(arg)|
|00005a10| 20 22 c0 09 5c 6e ab 8a | c3 0c 5c 6e 5c 5c c5 09 | "..\n..|..\n\\..|
|00005a20| 21 5c 22 aa 81 0c 5c 22 | 87 22 20 5b 72 69 6e 67 |!\"...\"|." [ring|
|00005a30| 2d 72 65 66 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |-ref com|int-inpu|
|00005a40| 74 2d 72 69 6e 67 20 63 | 6f 6d 69 6e 74 2d 69 6e |t-ring c|omint-in|
|00005a50| 70 75 74 2d 72 69 6e 67 | 2d 69 6e 64 65 78 20 6d |put-ring|-index m|
|00005a60| 6f 64 20 61 72 67 20 72 | 69 6e 67 2d 6c 65 6e 67 |od arg r|ing-leng|
|00005a70| 74 68 5d 20 36 20 28 23 | 24 20 2e 20 32 32 39 31 |th] 6 (#|$ . 2291|
|00005a80| 32 29 5d 29 0a 23 40 34 | 30 20 43 79 63 6c 65 20 |2)]).#@4|0 Cycle |
|00005a90| 62 61 63 6b 77 61 72 64 | 73 20 74 68 72 6f 75 67 |backward|s throug|
|00005aa0| 68 20 69 6e 70 75 74 20 | 68 69 73 74 6f 72 79 2e |h input |history.|
|00005ab0| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 63 6f 6d |..(defal|ias 'com|
|00005ac0| 69 6e 74 2d 70 72 65 76 | 69 6f 75 73 2d 69 6e 70 |int-prev|ious-inp|
|00005ad0| 75 74 20 23 5b 28 61 72 | 67 29 20 22 c0 c1 5c 6e |ut #[(ar|g) "..\n|
|00005ae0| 5c 22 87 22 20 5b 63 6f | 6d 69 6e 74 2d 70 72 65 |\"." [co|mint-pre|
|00005af0| 76 69 6f 75 73 2d 6d 61 | 74 63 68 69 6e 67 2d 69 |vious-ma|tching-i|
|00005b00| 6e 70 75 74 20 22 2e 22 | 20 61 72 67 5d 20 33 20 |nput "."| arg] 3 |
|00005b10| 28 23 24 20 2e 20 32 33 | 31 37 38 29 20 22 2a 70 |(#$ . 23|178) "*p|
|00005b20| 22 5d 29 0a 23 40 33 39 | 20 43 79 63 6c 65 20 66 |"]).#@39| Cycle f|
|00005b30| 6f 72 77 61 72 64 73 20 | 74 68 72 6f 75 67 68 20 |orwards |through |
|00005b40| 69 6e 70 75 74 20 68 69 | 73 74 6f 72 79 2e 1f 0a |input hi|story...|
|00005b50| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 6d 69 6e |(defalia|s 'comin|
|00005b60| 74 2d 6e 65 78 74 2d 69 | 6e 70 75 74 20 23 5b 28 |t-next-i|nput #[(|
|00005b70| 61 72 67 29 20 22 c0 09 | 5b 21 87 22 20 5b 63 6f |arg) "..|[!." [co|
|00005b80| 6d 69 6e 74 2d 70 72 65 | 76 69 6f 75 73 2d 69 6e |mint-pre|vious-in|
|00005b90| 70 75 74 20 61 72 67 5d | 20 32 20 28 23 24 20 2e |put arg]| 2 (#$ .|
|00005ba0| 20 32 33 33 33 37 29 20 | 22 2a 70 22 5d 29 0a 23 | 23337) |"*p"]).#|
|00005bb0| 40 31 31 33 20 52 65 74 | 75 72 6e 20 74 68 65 20 |@113 Ret|urn the |
|00005bc0| 73 74 72 69 6e 67 20 6d | 61 74 63 68 69 6e 67 20 |string m|atching |
|00005bd0| 52 45 47 45 58 50 20 41 | 52 47 20 70 6c 61 63 65 |REGEXP A|RG place|
|00005be0| 73 20 61 6c 6f 6e 67 20 | 74 68 65 20 69 6e 70 75 |s along |the inpu|
|00005bf0| 74 20 72 69 6e 67 2e 0a | 4d 6f 76 65 73 20 72 65 |t ring..|Moves re|
|00005c00| 6c 61 74 69 76 65 20 74 | 6f 20 60 63 6f 6d 69 6e |lative t|o `comin|
|00005c10| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 69 6e 64 |t-input-|ring-ind|
|00005c20| 65 78 27 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ex'...(d|efalias |
|00005c30| 27 63 6f 6d 69 6e 74 2d | 70 72 65 76 69 6f 75 73 |'comint-|previous|
|00005c40| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 2d |-matchin|g-input-|
|00005c50| 73 74 72 69 6e 67 20 23 | 5b 28 72 65 67 65 78 70 |string #|[(regexp|
|00005c60| 20 61 72 67 29 20 22 c0 | 09 5c 6e 5c 22 89 1b ad | arg) ".|.\n\"...|
|00005c70| 84 c4 0d 0b 5c 22 29 87 | 22 20 5b 63 6f 6d 69 6e |....\").|" [comin|
|00005c80| 74 2d 70 72 65 76 69 6f | 75 73 2d 6d 61 74 63 68 |t-previo|us-match|
|00005c90| 69 6e 67 2d 69 6e 70 75 | 74 2d 73 74 72 69 6e 67 |ing-inpu|t-string|
|00005ca0| 2d 70 6f 73 69 74 69 6f | 6e 20 72 65 67 65 78 70 |-positio|n regexp|
|00005cb0| 20 61 72 67 20 70 6f 73 | 20 72 69 6e 67 2d 72 65 | arg pos| ring-re|
|00005cc0| 66 20 63 6f 6d 69 6e 74 | 2d 69 6e 70 75 74 2d 72 |f comint|-input-r|
|00005cd0| 69 6e 67 5d 20 34 20 28 | 23 24 20 2e 20 32 33 34 |ing] 4 (|#$ . 234|
|00005ce0| 37 37 29 5d 29 0a 23 40 | 31 32 32 20 52 65 74 75 |77)]).#@|122 Retu|
|00005cf0| 72 6e 20 74 68 65 20 69 | 6e 64 65 78 20 6d 61 74 |rn the i|ndex mat|
|00005d00| 63 68 69 6e 67 20 52 45 | 47 45 58 50 20 41 52 47 |ching RE|GEXP ARG|
|00005d10| 20 70 6c 61 63 65 73 20 | 61 6c 6f 6e 67 20 74 68 | places |along th|
|00005d20| 65 20 69 6e 70 75 74 20 | 72 69 6e 67 2e 0a 4d 6f |e input |ring..Mo|
|00005d30| 76 65 73 20 72 65 6c 61 | 74 69 76 65 20 74 6f 20 |ves rela|tive to |
|00005d40| 53 54 41 52 54 2c 20 6f | 72 20 60 63 6f 6d 69 6e |START, o|r `comin|
|00005d50| 74 2d 69 6e 70 75 74 2d | 72 69 6e 67 2d 69 6e 64 |t-input-|ring-ind|
|00005d60| 65 78 27 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ex'...(d|efalias |
|00005d70| 27 63 6f 6d 69 6e 74 2d | 70 72 65 76 69 6f 75 73 |'comint-|previous|
|00005d80| 2d 6d 61 74 63 68 69 6e | 67 2d 69 6e 70 75 74 2d |-matchin|g-input-|
|00005d90| 73 74 72 69 6e 67 2d 70 | 6f 73 69 74 69 6f 6e 20 |string-p|osition |
|00005da0| 23 5b 28 72 65 67 65 78 | 70 20 61 72 67 20 26 6f |#[(regex|p arg &o|
|00005db0| 70 74 69 6f 6e 61 6c 20 | 73 74 61 72 74 29 20 22 |ptional |start) "|
|00005dc0| c0 09 21 ab 85 c2 09 21 | ab 84 c3 c4 21 88 c5 09 |..!....!|....!...|
|00005dd0| 21 1e 06 0e 07 c8 56 ab | 83 c9 aa 81 ca 1e 0b cc |!.....V.|........|
|00005de0| 0e 0d ae 84 ce 0e 07 21 | 0e 0b 5a 0e 06 5c 22 1e |.......!|..Z..\".|
|00005df0| 0f d0 1e 11 d0 1e 12 0e | 07 c8 55 ac cf 0e 11 ac |........|..U.....|
|00005e00| cb 0e 0f 16 12 cc 0e 0f | 0e 0b 5c 5c 0e 06 5c 22 |........|..\\..\"|
|00005e10| 16 0f 0e 0f 0e 06 57 ab | a2 0e 11 ac 9e d3 0e 14 |......W.|........|
|00005e20| d5 09 0e 0f 5c 22 5c 22 | ac 93 cc 0e 0f 0e 0b 5c |....\"\"|.......\|
|00005e30| 5c 0e 06 5c 22 89 16 0f | 0e 12 55 16 11 aa 57 0e |\..\"...|..U...W.|
|00005e40| 07 c8 56 ab 85 0e 07 53 | aa 83 0e 07 54 89 16 07 |..V....S|....T...|
|00005e50| aa 2d d3 0e 14 d5 09 0e | 0f 5c 22 5c 22 ad 82 0e |.-......|.\"\"...|
|00005e60| 0f 2d 87 22 20 5b 72 69 | 6e 67 70 20 63 6f 6d 69 |.-." [ri|ngp comi|
|00005e70| 6e 74 2d 69 6e 70 75 74 | 2d 72 69 6e 67 20 72 69 |nt-input|-ring ri|
|00005e80| 6e 67 2d 65 6d 70 74 79 | 2d 70 20 65 72 72 6f 72 |ng-empty|-p error|
|00005e90| 20 22 4e 6f 20 68 69 73 | 74 6f 72 79 22 20 72 69 | "No his|tory" ri|
|00005ea0| 6e 67 2d 6c 65 6e 67 74 | 68 20 6c 65 6e 20 61 72 |ng-lengt|h len ar|
|00005eb0| 67 20 30 20 31 20 2d 31 | 20 6d 6f 74 69 6f 6e 20 |g 0 1 -1| motion |
|00005ec0| 6d 6f 64 20 73 74 61 72 | 74 20 63 6f 6d 69 6e 74 |mod star|t comint|
|00005ed0| 2d 73 65 61 72 63 68 2d | 73 74 61 72 74 20 6e 20 |-search-|start n |
|00005ee0| 6e 69 6c 20 74 72 69 65 | 64 2d 65 61 63 68 2d 72 |nil trie|d-each-r|
|00005ef0| 69 6e 67 2d 69 74 65 6d | 20 70 72 65 76 20 73 74 |ing-item| prev st|
|00005f00| 72 69 6e 67 2d 6d 61 74 | 63 68 20 72 65 67 65 78 |ring-mat|ch regex|
|00005f10| 70 20 72 69 6e 67 2d 72 | 65 66 5d 20 36 20 28 23 |p ring-r|ef] 6 (#|
|00005f20| 24 20 2e 20 32 33 37 38 | 38 29 5d 29 0a 23 40 32 |$ . 2378|8)]).#@2|
|00005f30| 31 38 20 53 65 61 72 63 | 68 20 62 61 63 6b 77 61 |18 Searc|h backwa|
|00005f40| 72 64 73 20 74 68 72 6f | 75 67 68 20 69 6e 70 75 |rds thro|ugh inpu|
|00005f50| 74 20 68 69 73 74 6f 72 | 79 20 66 6f 72 20 6d 61 |t histor|y for ma|
|00005f60| 74 63 68 20 66 6f 72 20 | 52 45 47 45 58 50 2e 0a |tch for |REGEXP..|
|00005f70| 28 50 72 65 76 69 6f 75 | 73 20 68 69 73 74 6f 72 |(Previou|s histor|
|00005f80| 79 20 65 6c 65 6d 65 6e | 74 73 20 61 72 65 20 65 |y elemen|ts are e|
|00005f90| 61 72 6c 69 65 72 20 63 | 6f 6d 6d 61 6e 64 73 2e |arlier c|ommands.|
|00005fa0| 29 0a 57 69 74 68 20 70 | 72 65 66 69 78 20 61 72 |).With p|refix ar|
|00005fb0| 67 75 6d 65 6e 74 20 4e | 2c 20 73 65 61 72 63 68 |gument N|, search|
|00005fc0| 20 66 6f 72 20 4e 74 68 | 20 70 72 65 76 69 6f 75 | for Nth| previou|
|00005fd0| 73 20 6d 61 74 63 68 2e | 0a 49 66 20 4e 20 69 73 |s match.|.If N is|
|00005fe0| 20 6e 65 67 61 74 69 76 | 65 2c 20 66 69 6e 64 20 | negativ|e, find |
|00005ff0| 74 68 65 20 6e 65 78 74 | 20 6f 72 20 4e 74 68 20 |the next| or Nth |
|00006000| 6e 65 78 74 20 6d 61 74 | 63 68 2e 1f 0a 28 64 65 |next mat|ch...(de|
|00006010| 66 61 6c 69 61 73 20 27 | 63 6f 6d 69 6e 74 2d 70 |falias '|comint-p|
|00006020| 72 65 76 69 6f 75 73 2d | 6d 61 74 63 68 69 6e 67 |revious-|matching|
|00006030| 2d 69 6e 70 75 74 20 23 | 5b 28 72 65 67 65 78 70 |-input #|[(regexp|
|00006040| 20 61 72 67 29 20 22 c0 | 09 21 11 c2 0b 09 5c 22 | arg) ".|.!....\"|
|00006050| 89 1c ac 85 c5 c6 21 aa | 97 0c 16 07 c8 c9 0c 54 |......!.|.......T|
|00006060| 5c 22 88 ca cb 70 21 21 | 60 7c 88 cc 0e 0d 0c 5c |\"...p!!|`|.....\|
|00006070| 22 63 29 87 22 20 5b 63 | 6f 6d 69 6e 74 2d 73 65 |"c)." [c|omint-se|
|00006080| 61 72 63 68 2d 61 72 67 | 20 61 72 67 20 63 6f 6d |arch-arg| arg com|
|00006090| 69 6e 74 2d 70 72 65 76 | 69 6f 75 73 2d 6d 61 74 |int-prev|ious-mat|
|000060a0| 63 68 69 6e 67 2d 69 6e | 70 75 74 2d 73 74 72 69 |ching-in|put-stri|
|000060b0| 6e 67 2d 70 6f 73 69 74 | 69 6f 6e 20 72 65 67 65 |ng-posit|ion rege|
|000060c0| 78 70 20 70 6f 73 20 65 | 72 72 6f 72 20 22 4e 6f |xp pos e|rror "No|
|000060d0| 74 20 66 6f 75 6e 64 22 | 20 63 6f 6d 69 6e 74 2d |t found"| comint-|
|000060e0| 69 6e 70 75 74 2d 72 69 | 6e 67 2d 69 6e 64 65 78 |input-ri|ng-index|
|000060f0| 20 6d 65 73 73 61 67 65 | 20 22 48 69 73 74 6f 72 | message| "Histor|
|00006100| 79 20 69 74 65 6d 3a 20 | 25 64 22 20 70 72 6f 63 |y item: |%d" proc|
|00006110| 65 73 73 2d 6d 61 72 6b | 20 67 65 74 2d 62 75 66 |ess-mark| get-buf|
|00006120| 66 65 72 2d 70 72 6f 63 | 65 73 73 20 72 69 6e 67 |fer-proc|ess ring|
|00006130| 2d 72 65 66 20 63 6f 6d | 69 6e 74 2d 69 6e 70 75 |-ref com|int-inpu|
|00006140| 74 2d 72 69 6e 67 5d 20 | 34 20 28 23 24 20 2e 20 |t-ring] |4 (#$ . |
|00006150| 32 34 33 37 31 29 20 28 | 63 6f 6d 69 6e 74 2d 72 |24371) (|comint-r|
|00006160| 65 67 65 78 70 2d 61 72 | 67 20 22 50 72 65 76 69 |egexp-ar|g "Previ|
|00006170| 6f 75 73 20 69 6e 70 75 | 74 20 6d 61 74 63 68 69 |ous inpu|t matchi|
|00006180| 6e 67 20 28 72 65 67 65 | 78 70 29 3a 20 22 29 5d |ng (rege|xp): ")]|
|00006190| 29 0a 23 40 32 32 37 20 | 53 65 61 72 63 68 20 66 |).#@227 |Search f|
|000061a0| 6f 72 77 61 72 64 73 20 | 74 68 72 6f 75 67 68 20 |orwards |through |
|000061b0| 69 6e 70 75 74 20 68 69 | 73 74 6f 72 79 20 66 6f |input hi|story fo|
|000061c0| 72 20 6d 61 74 63 68 20 | 66 6f 72 20 52 45 47 45 |r match |for REGE|
|000061d0| 58 50 2e 0a 28 4c 61 74 | 65 72 20 68 69 73 74 6f |XP..(Lat|er histo|
|000061e0| 72 79 20 65 6c 65 6d 65 | 6e 74 73 20 61 72 65 20 |ry eleme|nts are |
|000061f0| 6d 6f 72 65 20 72 65 63 | 65 6e 74 20 63 6f 6d 6d |more rec|ent comm|
|00006200| 61 6e 64 73 2e 29 0a 57 | 69 74 68 20 70 72 65 66 |ands.).W|ith pref|
|00006210| 69 78 20 61 72 67 75 6d | 65 6e 74 20 4e 2c 20 73 |ix argum|ent N, s|
|00006220| 65 61 72 63 68 20 66 6f | 72 20 4e 74 68 20 66 6f |earch fo|r Nth fo|
|00006230| 6c 6c 6f 77 69 6e 67 20 | 6d 61 74 63 68 2e 0a 49 |llowing |match..I|
|00006240| 66 20 4e 20 69 73 20 6e | 65 67 61 74 69 76 65 2c |f N is n|egative,|
|00006250| 20 66 69 6e 64 20 74 68 | 65 20 70 72 65 76 69 6f | find th|e previo|
|00006260| 75 73 20 6f 72 20 4e 74 | 68 20 70 72 65 76 69 6f |us or Nt|h previo|
|00006270| 75 73 20 6d 61 74 63 68 | 2e 1f 0a 28 64 65 66 61 |us match|...(defa|
|00006280| 6c 69 61 73 20 27 63 6f | 6d 69 6e 74 2d 6e 65 78 |lias 'co|mint-nex|
|00006290| 74 2d 6d 61 74 63 68 69 | 6e 67 2d 69 6e 70 75 74 |t-matchi|ng-input|
|000062a0| 20 23 5b 28 72 65 67 65 | 78 70 20 61 72 67 29 20 | #[(rege|xp arg) |
|000062b0| 22 c0 09 5c 6e 5b 5c 22 | 87 22 20 5b 63 6f 6d 69 |"..\n[\"|." [comi|
|000062c0| 6e 74 2d 70 72 65 76 69 | 6f 75 73 2d 6d 61 74 63 |nt-previ|ous-matc|
|000062d0| 68 69 6e 67 2d 69 6e 70 | 75 74 20 72 65 67 65 78 |hing-inp|ut regex|
|000062e0| 70 20 61 72 67 5d 20 33 | 20 28 23 24 20 2e 20 32 |p arg] 3| (#$ . 2|
|000062f0| 34 39 38 34 29 20 28 63 | 6f 6d 69 6e 74 2d 72 65 |4984) (c|omint-re|
|00006300| 67 65 78 70 2d 61 72 67 | 20 22 4e 65 78 74 20 69 |gexp-arg| "Next i|
|00006310| 6e 70 75 74 20 6d 61 74 | 63 68 69 6e 67 20 28 72 |nput mat|ching (r|
|00006320| 65 67 65 78 70 29 3a 20 | 22 29 5d 29 0a 23 40 32 |egexp): |")]).#@2|
|00006330| 33 38 20 53 65 61 72 63 | 68 20 62 61 63 6b 77 61 |38 Searc|h backwa|
|00006340| 72 64 73 20 74 68 72 6f | 75 67 68 20 69 6e 70 75 |rds thro|ugh inpu|
|00006350| 74 20 68 69 73 74 6f 72 | 79 20 66 6f 72 20 6d 61 |t histor|y for ma|
|00006360| 74 63 68 20 66 6f 72 20 | 63 75 72 72 65 6e 74 20 |tch for |current |
|00006370| 69 6e 70 75 74 2e 0a 28 | 50 72 65 76 69 6f 75 73 |input..(|Previous|
|00006380| 20 68 69 73 74 6f 72 79 | 20 65 6c 65 6d 65 6e 74 | history| element|
|00006390| 73 20 61 72 65 20 65 61 | 72 6c 69 65 72 20 63 6f |s are ea|rlier co|
|000063a0| 6d 6d 61 6e 64 73 2e 29 | 0a 57 69 74 68 20 70 72 |mmands.)|.With pr|
|000063b0| 65 66 69 78 20 61 72 67 | 75 6d 65 6e 74 20 4e 2c |efix arg|ument N,|
|000063c0| 20 73 65 61 72 63 68 20 | 66 6f 72 20 4e 74 68 20 | search |for Nth |
|000063d0| 70 72 65 76 69 6f 75 73 | 20 6d 61 74 63 68 2e 0a |previous| match..|
|000063e0| 49 66 20 4e 20 69 73 20 | 6e 65 67 61 74 69 76 65 |If N is |negative|
|000063f0| 2c 20 73 65 61 72 63 68 | 20 66 6f 72 77 61 72 64 |, search| forward|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.